defaultfolder
Klaus Major
klaus at major-k.de
Thu Apr 6 09:11:11 EDT 2006
Hi David,
> Hi,
> On 5 Apr 2006, at 16:10, Iden Rosenthal wrote:
>> on setdefaultpath
>> put the filename of this stack into fullpath
>> set the itemDelimiter to "/"
>> put item 1 to (number of items in fullpath - 1) of fullpath &
>> "/" into SoulGuidingFolder
>> set the defaultfolder to SoulGuidingFolder
>> set the itemDelimiter to ","
>> end setdefaultpath
> I think a better way to do this would be to use a function, as so:
> function setdefaultpath
> local SoulGuidingFolder
> ...
> end setdefaultpath
>
> Then when you use it:
> set the defaultFolder to setdefaultpath()
> This makes it more flexible and also allows you to "see" what is
> being set!
the handler was OK actually!
It was just at the wrong place in the script ;-)
> Hope this helps
> Dave
Regards
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list