Code: Select all
put the filename of this stack into theStartingApp
However, when I do this in the standalone app, the filename of the Stack points to my "compiled stack" inside the app package. To make this even more confusing, I use some code that changes the delimiter to a "/", removes the last item of that variable, and puts in its place "List Management.livecode". That new string is stored in a global variable named "theListManager" and that is the name of the stack to which I may make changes in data. But there is some confusing code behind consistent behavior. If I use :
Code: Select all
go stack theListManager in a new window
Here's the contents of "theListManager" variable when examined from within the standlone: There is no stack inside of the app package; the stack that opens is the correct one inside the folder named "Donation Tracker v1.01"
Now, I understand why there would be different behavior although I can't understand why there should be; after all, if this behavior is to be expected, should the compiling process within Livecode take this into account and permit code that's perfectly acceptable within the dev environment perform in the same manner when in the standalone? I can understand the need to use an additional stack to which I may write data so I'm not including this in my question. Maybe I'm using the wrong code but shouldn't code that refers to a free-standing Livecode stack in the dev environment be consistent from dev to standalone (and I haven't checked how this behaves in the Windows version of the standalone yet)?
In addition, the goofy result of the location of the stack referred to in the variable theListManager results in the correct behavior regardless of dev vs standalone when I use the "go stack theListManager in a new window" so I'm seeing different code that should result in an error actually perform properly in the standalone when it actually should not.