Local Path for Mobile
rdimolad at evergreeninfo.net
Sun Aug 9 00:23:30 CEST 2015
File in the stack are in "the engine folder" and it's sub folders. This is read only.
You can store files in "the documents folder".
Check the docs for other folder options.
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.
Evergreen Information Services
rdimola at evergreeninfo.net
<div>-------- Original message --------</div><div>From: Brahmanathaswami <brahma at hindu.org> </div><div>Date:08/08/2015 18:04 (GMT-05:00) </div><div>To: How to use LiveCode <use-livecode at lists.runrev.com> </div><div>Subject: Local Path for Mobile </div><div>
</div>Complete mobile newbie here... will be coming with my begging bowl out
a lot in the days to come.
Is this good for mobile also?
put the effective filename of this stack into tPath
set the itemdel to "/"
delete item -1 of tPath
put "/" after tPath
where we need to reference images, icons, text files and other data..
we can fetch things with
set the defaultfolder to (localPath() &"img/icons")
put the files
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode