I have a problem with accessing a function/command in the Main Stack from another stack I attached or vise versa.
first:
The reason I build the attached stack is that there was too much code in the main stack slowing down the reaction time in the editor. So I moved a few thousand lines to a new stack and attached it with the below-shown code. At run time I could not use a function in the new stack that resides in the Main Stack.
Then I thought to be smart and attached this new stack as a sub stack to the Main Stack and removed the code below from preopenstack section. But then I could not use any of the commands in this new attached substack.
So what am I overlooking in the message path?
I would rather not copy the thousands of lines of code back to the Main stack because it makes programming any code in the Main Stack a pain in the ...
Code: Select all
put tASSPath & "IndicatorCommands_V001.livecode" into sIndicatorCommands
open stack sIndicatorCommands
start using stack sIndicatorCommands
set the visible of stack sIndicatorCommands to false