cmd options on blitz program?

BlitzMax Forums/BlitzMax Beginners Area/cmd options on blitz program?

Caton(Posted 2016) [#1]
is it possible to do this in blitzmax code?

example in win cmd line

mybmxapp.exe -l en



xlsior(Posted 2016) [#2]
Yes -- AppArgs[]

For Local n:Int=1 To AppArgs.length-1
Print AppArgs[n]
Next



Caton(Posted 2016) [#3]
thanks


xlsior(Posted 2016) [#4]
And FWIW, you can do testing in the IDE through the Program -> Command Line menu option. Those parameters will be passed to any program that you compile & run from within the IDE.