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:
<?lc 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>" end repeat put "</p>" 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: libstackmain newcompany Home substacks of libstackmain are: newcompany ------------- 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. Martin -- 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. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode