PDA

Click to See Complete Forum and Search --> : Exe Returns Value? VB


Dev
Nov 21st, 2000, 09:23 AM
Hello

How one can make an Exe file in VB which returns value?
Similarly like a function.


Thanks Ahead..
Dev

rfo
Nov 21st, 2000, 11:14 AM
You probably can't. Even if you could, whow would you get taht return value? But you can create an ActiveX-Dll with functions.

Nov 21st, 2000, 12:12 PM
Do you mean, taking in Command lines and returning stuff?

Private Sub Form_Load()

Select Case Command
Case "-hello"
Msgbox "Hello"
Case "-bye"
Msgbox "bye"
End Select

End Sub

drebhun
Nov 28th, 2000, 09:20 AM
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