put value on variable on another stack
Posted: Sun Aug 04, 2013 4:47 pm
Greetings everyone.
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
on another stack I try to set the value of these var like this:
the first put (for local var) does not work. It gives me an error (execution error at line 3 (Chunk: source is not a container), char 30)
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
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