Save stack working?

Klaus Major k_major at os.surf2000.de
Fri Nov 15 06:55:01 EST 2002


Hi Dave,

> I've tried the following script to try to setup a preferences-like 
> file for
> windows.  I can't seem to get it to save the stack to the 
> defaultFolder area
> of my standalone.
>
> Is save stack screwed up or am I?  :-)  It seems pretty simple.
>
> on mouseUP
>   put "prefs.dat" into prefsFile
>
>   create invisible stack prefsFile
>   -- set custom properties here
>
>   save stack prefsFile
>     -- should save in the defaultFolder right?
>
>   close stack prefsFile
> end mouseUP
>
>
> Thanks!
>
> --
> Dave Egbert

looks like the engine does not yet know into which file
the stack should be saved for the first time.

So just add these 2 words:

....
   save stack prefsFile as prefsfile ## !
   ## the missing piece :-)
....

Hope this helps.

Regards

Klaus Major
k_major at os.surf2000.de




More information about the use-livecode mailing list