I have an Access2000 database that calls a VB6 exe. I need to pass a couple of strings to the exe. How do I get my VB program to pickup the passed strings?
Printable View
I have an Access2000 database that calls a VB6 exe. I need to pass a couple of strings to the exe. How do I get my VB program to pickup the passed strings?
Any Parameters passed to your VB EXE can be accessed via the Command Function, eg.
Compile the EXE and run with a Command Line..Code:Private Sub Form_Load()
If Len(Command) Then
MsgBox "You Passed the Following Command Line: " & Command
Else
MsgBox "You Didn't Pass any Command Line Parameters."
End If
End Sub
Project1.exe Hello There
Will result in a Dialog saying "You Passed the Following Command Line: Hello There"
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
[This message has been edited by Aaron Young (edited 12-04-1999).]