Results 1 to 4 of 4

Thread: Exe Returns Value? VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    Calcutta
    Posts
    5

    Unhappy

    Hello

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


    Thanks Ahead..
    Dev
    devprasaddas

  2. #2
    Member
    Join Date
    Oct 2000
    Posts
    35
    You probably can't. Even if you could, whow would you get taht return value? But you can create an ActiveX-Dll with functions.
    rfo

  3. #3
    Guest
    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

  4. #4
    New Member
    Join Date
    Nov 2000
    Posts
    4
    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
  •  



Click Here to Expand Forum to Full Width