[Server] create stack trouble
Martin Koob
mkoob at rogers.com
Fri Aug 5 21:40:46 EDT 2011
Hi
I tried this on a third party install not on On-rev.
I tried the create stack command and then to see if a stack was indeed
created I used the openstacks command.
put "newcompany" into tNewStackName
put "<p>Creating " & tNewstackName & "</p>"
create stack tNewStackName
repeat for each line thisline in the openstacks
put thisline & "</br>"
end repeat
The output shows two stacks are open Home and newcompany so the stack was
created in memory.
>From the 'create stack' documentation it says "The newly created stack is
not saved to a file until you explicitly save it. If you close it without
saving it, the stack disappears."
So I tried a save stack command to save it as a file. This however did not
work.
I tried a few variations
First try - just try the saving the stack.
save stack tNewStackName
Second try- perhaps it needs a path with a .livecode extension:
save stack tNewStackName as "newcompanystack.livecode"
Third try - perhaps it needs a full path:
put the defaultfolder & "/newcompanystack.livecode" into tfullstackpath
save stack as tfullstackpath
None of these worked.
I checked the documentation for 'Save stack' and realized it is not
implemented on the Server platform.
I am not sure if there is another way to save a stack on server.
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Server-create-stack-trouble-tp3721781p3722610.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list