VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Multiple Command Line Arguments (switches) Example

by Andrew Mothersele (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

This example shows how to implement multiple command line arguments or switches. The arguments passed to the application are shown in a listbox on the screen. Help is provided on how to run the program with arguments in VB. Use arguments ion the form "-h -c-t" (without the quotes)

Assumes
Running this app, without parameters will not crash it, but does make it very dull !!
Side Effects
This will not work for people with VB5 or lower as it makes use of the split() function, introduced in VB6. There are alternatives though...

Rate Multiple Command Line Arguments (switches) Example

Upload

Download this snippet    Add to My Saved Code

Multiple Command Line Arguments (switches) Example Comments

No comments have been posted about Multiple Command Line Arguments (switches) Example. Why not be the first to post a comment about Multiple Command Line Arguments (switches) Example.

Post your comment

Subject:
Message:
0/1000 characters