|
-
Nov 21st, 2000, 10:23 AM
#1
Thread Starter
New Member
Hello
How one can make an Exe file in VB which returns value?
Similarly like a function.
Thanks Ahead..
Dev
-
Nov 21st, 2000, 12:14 PM
#2
Member
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, 01:12 PM
#3
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
-
Nov 28th, 2000, 10:20 AM
#4
New Member
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
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
|