Page 1 of 1

Loading a seperate stackfile

Posted: Wed Mar 07, 2012 1:17 pm
by Tomka
Hi,

I want to load a seperate stackfile via script in my app. Under Windows I use the go stack command to do this. But under Android I dont realise how to manage this.

The stackfile is saved in the "Substacks"-Subfolder - filename: "Main_App.livecode"... could someone pls give me an example-script how I can load this file (including path-settings)?

Thanks alot

Re: Loading a seperate stackfile

Posted: Wed Mar 07, 2012 2:01 pm
by Klaus
Hi Tom,

should work the same as on Windows once you know the correct path to the stack file 8)

Try this:
...
put specialfolderpath("engine") & "/Substacks/Main_App.livecode" into tStack
go stack tStack
...

Hint, since iOS is CASE-sensitive!!! (and maybe ANDROID also?)
I would recommend to not use any UPPERCASE filenames at all!
Use LOWERCASE in all mobile related file- and foldernames to avoid possible headaches :D

Best

Klaus

Re: Loading a seperate stackfile

Posted: Wed Mar 07, 2012 2:45 pm
by Tomka
Thanks alot Klaus... I´ll try and also change all to lowercase :)

edit: works fine :)