Creating files/folders

Dr. Hawkins dochawk at gmail.com
Fri Oct 5 16:02:45 EDT 2012


On Fri, Oct 5, 2012 at 12:56 PM, Peter Haworth <pete at lcsql.com> wrote:
> If I "open file <filepath>" for write" and the file doesn't exist LC
> creates it.  But what happens if an error occurs? For example, the file
> path includes a folder that doesn't exist, or permissions don't allow the
> file to be created.  I know the file doesn't get created but how do I check
> for an error?
>
> Similarly with "create folder <pathtofolder>", how do I check for errors?

Shouldn't any such thing be in "the result"?  It has for things I've
wanted, unless returned as a value from a function.

-- 
Richard E. Hawkins, Esq.
(702) 508-8462




More information about the use-livecode mailing list