[Server] create stack trouble
mkoob at rogers.com
Fri Aug 5 22:06:54 EDT 2011
I had another thought. What if you added your stack to an existing stack
that is already saved on the server as a substack? I have an existing
stack "libstackmain.livecode" in the directory that I could add substacks to
so I tried the following:
set the errormode to "inline"
put "newcompany" into tNewStackName
put "<p>Creating stack: " & tNewstackName & "</p>"
create stack tNewStackName
go stack "libstackmain.livecode"
put "<p>The open stacks currently are:<br>"
repeat for each line thisline in the openstacks
put thisline & "</br>"
set the substacks of stack "libstackmain" to "newcompany"
put "<p>substacks of libstackmain are:</br>" & the substacks of stack
"libstackmain" & "</p>"
save stack "libstackmain"
the output from this is
Creating stack: newcompany
The open stacks currently are:
substacks of libstackmain are:
When I check the 'libstackmain.livecode" stack it is still unaltered, no
substacks. So while it was in memory it had the substacks.
Interesting but not a solution to your problem.
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Server-create-stack-trouble-tp3721781p3722633.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the Use-livecode