AppArgs Tutorial ?

BlitzMax Forums/BlitzMax Programming/AppArgs Tutorial ?

Hi,

Can somebody please tell me exactly how to use this.

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

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.

Ok thanks alot guys, i got it.