On my app, I have created a stack to store all app settings (ex, the path of the current open document ).
so, I have this setting stack with the following code
project_settings stack
Code: Select all
local projectPath1
global projectPath2
Code: Select all
ask file "Please name your file:"
put it into projectPath1 of stack "project_settings"
put it into projectPath2
the second put (for global var) works just fine
Anyone is able to explain me what I'm doing wrong ?
should I use a function on my settings stack to set the var value instead of trying to set it directly ?
Many thanks
- Miguel