Hello
How one can make an Exe file in VB which returns value?
Similarly like a function.
Thanks Ahead..
Dev
Printable View
Hello
How one can make an Exe file in VB which returns value?
Similarly like a function.
Thanks Ahead..
Dev
You probably can't. Even if you could, whow would you get taht return value? But you can create an ActiveX-Dll with functions.
Do you mean, taking in Command lines and returning stuff?
Code:Private Sub Form_Load()
Select Case Command
Case "-hello"
Msgbox "Hello"
Case "-bye"
Msgbox "bye"
End Select
End Sub
I have a VB program that passes a return code out of the program and is read in a Batch file.
I use the "lExitCode" command in VB.
Example: lExitCode = 500& ' sets the error level to a value of 500
Then in dos batch:
if errorlevel 500