Local Path for Mobile

Brahmanathaswami brahma at hindu.org
Sun Aug 9 00:04:23 CEST 2015


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?

function localPath
    put the effective filename of this stack into tPath
    set the itemdel to "/"
    delete item -1 of tPath
    put "/" after tPath
    return tPath
end localPath

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


BR



More information about the use-livecode mailing list