[Gambas-user] App Path

Fabien Bodard abidoo.too at ...11...
Sat Jun 12 12:45:48 CEST 2004


Le samedi 12 Juin 2004 06:19, Devin Hassan a écrit :
> Hello,
> This is how I load my tiles.
> e = "/home/Devlin/SlayerMap/Dungeon/0073.png"
>
> As e is the variable I use to display the tile.
>
> My question here is how can I load the tile from the App Dir?
> like "/SlayerMap/Dungeon/0073.png"
>
> This of course does not work. and if I enter the above code it will only
> work on my computer because everyone does not have the /Devlin directory on
> there computer. So how can I load my tiles in the
> /Dungeon directory using code that lets me load out of the app path.
> I have over 350 tiles in my map editor so far. Thanks
>
> Devlin

your path is : Application.home &/ "SlayerMap/Dungeon/0073.png"

Application.home give the user home directory !

Regards,
Fabien Bodard


> _________________________________________________________________
> Check out the coupons and bargains on MSN Offers! http://youroffers.msn.com
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the new InstallShield X.
> From Windows to Linux, servers to mobile, InstallShield X is the
> one installation-authoring solution that does it all. Learn more and
> evaluate today! http://www.installshield.com/Dev2Dev/0504
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user




More information about the User mailing list