|
-
Dec 8th, 1999, 02:09 AM
#1
When launching a program I would like to pass a command line parameter or switch to the program (UTILPGM -B). How do I go about reading the command line parameter that I have passed the program using Visual Basic 6.0?
------------------
Ritchie Short
-
Dec 8th, 1999, 02:26 AM
#2
You can achieve this using the Command function:
Command Function - Returns the argument portion of the command line used to launch Microsoft Visual Basic or an executable program developed with Visual Basic.
Example:
Code:
Private Sub Form_Load()
If Command <> "" Then MsgBox "You passed the Command Line: " & Command
End Sub
------------------
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|