Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass parameters to an application in VB5?
Message
 
 
To
25/03/1998 07:55:03
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00086961
Message ID:
00086999
Views:
18
>I am searching for an explanation. Does anyone now how to pass parameters to my application in VB5. Example: My application is called by "Application.exe". I want to call it by "Application.exe myFile". For example if my application is a text editor, I want to pass a parameter like a file to open in it. In fact I do not know how to extract this parameter to use it in my application. With the Java language, we could do: void main(argv[]) and then use argv[0] like a variable. That is exactly what I want to do with VB5. Please HELP

When a VB application starts, there's a global variable called Command$, or you can also use the function Command() which returns a string containing the command line arguments in a string. You just have to "extract" them and whatever you want to do with them.

Hugo Dahl
"My get up and go must've got up and went"
-Steve Tyler, Aerosmith
Previous
Reply
Map
View

Click here to load this message in the networking platform