Fun with answer and files()

Klaus major-k klaus at major-k.de
Tue Jan 15 08:02:05 EST 2019


Hi all,

> Am 15.01.2019 um 13:52 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
> 
> 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.

before you start a lengthy reply, I understand what is going on here, 
just wanted to share my AHA-experience. :-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list