AppArgs Tutorial ?

BlitzMax Forums/BlitzMax Programming/AppArgs Tutorial ?

Sarge(Posted 2005) [#1]
Hi,

Can somebody please tell me exactly how to use this.


Diablo(Posted 2005) [#2]
you can make you program do different things when it starts up. For example I think that windows screen saver uses different 'app'args for different functions of a saver. can't remember them tho, but i think it uses one for displaying the screensaver, one for when you want to change the settings and one for the preview


tonyg(Posted 2005) [#3]
Use the example...
' appargs.bmx
' print the command line arguments passed to the program at runtime

Print "Number of arguments = "+AppArgs.length

For a$=EachIn AppArgs
Print a$
Next


but before running it hit F2 to open the console. Type Hello World, close the console and Build and Run.
Notice that AppArgs prints out the arguments you gave the program.


Sarge(Posted 2005) [#4]
Ok thanks alot guys, i got it.