How to use AppArgs ?

BlitzMax Forums/BlitzMax Programming/How to use AppArgs ?

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