Folder problem
Shao Sean
shaosean at unitz.ca
Thu Jul 4 15:02:01 EDT 2002
put the defaultFolder into the oldDefaultFolder -- if you require this (see
note 1 below)
answer folder "WhichOne"
if (it is not empty) then
set the defaultFolder to it
if (the number of lines in the files = 0) then
#empty folder
else
#non-empty folder
end if
end if
note 1:
storing the old defaultFolder at the beginning of your code allows you to
reset it at the end so the path that was there before is there again (other
code may be accessing it after your code and this allows you to be friendly
=)
More information about the use-livecode
mailing list