How to use AppArgs ?

BlitzMax Forums/BlitzMax Programming/How to use AppArgs ?

flaith(Posted 2005) [#1]
hi all,

i tried that code, but does not work

Global File_To_load:String

If argc>0 
	Print "Loading..."

	File_to_load=AppArgs[1]
else
...


compiler message :
unable to convert from 'String' to 'Int' ??? Why ?
thx


Dreamora(Posted 2005) [#2]
AppArgs is an Array of Char this means array of int

if you want to use the stuff within you have to parse it.