Fun with answer and files()
Klaus major-k
klaus at major-k.de
Tue Jan 15 07:52:09 EST 2019
Hi friends,
yesterday I wanted to save a line of script and wrote:
...
put specialfolderpath("desktop") into tFolder
answer files(tFolder)
...
Instead of:
...
put specialfolderpath("desktop") into tFolder
put files(tFolder) into tFiles
answer tFiles
...
Before you try, think about what you would exspect and then try it!
At least I was heavily suprised when I did NOT see all files from my
desktop listed in an answer dialog! :-)
Hint:
Using brackets fixed it.
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major-k.de
More information about the use-livecode
mailing list