Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass parameters to an application in VB5?
Message
 
À
25/03/1998 07:55:03
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00086961
Message ID:
00086999
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform