This assumes that all the assets to be included in the copy files pane in
the standalone setting are relative to the stack path.
 
function TheEngine
  local tStackPath
   switch 
      case the environment = "Mobile"
         return the engine folder
         break
      default
        put the long name of this stack into tStackPath
        delete char 1 to 7 in tStackPath
        set the itemdelimiter to slash
        return item 1 to -2 of tStackPath
        end switch
   
end TheEngine

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-----Original Message-----
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Brahmanathaswami
Sent: Saturday, August 08, 2015 10:16 PM
To: How to use LiveCode
Subject: Re: Local Path for Mobile

Can you share that function?

i could guess what it is... but why re-invent the wheel?




Ralph DiMola wrote:
> I have a function "TheEngineFolder" that returns the engine folder on
mobile and the location of the included assets when in the IDE. This allows
testing using the same code.


_______________________________________________
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


_______________________________________________
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

Reply via email to