Results 1 to 9 of 9

Thread: starting a program.. and having it return a value

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    is there anyway to start a program
    from my program and have it return me a value?

    (It would also be my program)





    [Edited by Evan on 10-05-2000 at 09:40 PM]

  2. #2
    Guest
    Code:
    RetVal = Shell("C:\program.exe", vbNormalFocus)

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    How then would i make retval a value that
    i want..

  4. #4
    Guest

    Question

    Code:
    RetVal = yourvalue

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    no..

    I Am Using One APP

    I open another app with some Run-tim arguments
    and it returns the other open app a value
    based on the arguements ..

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    hmm..


    your still missing it.. thanks though.
    I guess Ill just figure out a
    different way to do what i want.


  7. #7
    Addicted Member LAURENS's Avatar
    Join Date
    Jan 2000
    Location
    Utrecht, the Netherlands
    Posts
    138
    Matthew seems to be mixing up passing and returning values.

    As far as I know VB programs cannot return values the way eg. c-programs can. You can let the started program put something on disk and let the program where it was started from read this value after the other one has finished.


    Regards,
    Laurens

    Using VB5 Enterprise edition SP3
    VB6 Enterprise edition SP5

  8. #8
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    there's a way using certain APIs I do not recall which ones that you can return values like a C program. Look up Proccess in MSDN and you should find related APIs

    I know it can be done, but how is another matter.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    Thankyou all

    Thankyou,

    (Thankyou is usually followed by but)
    But, when I said I would find another
    way to do it, I did. Even though,
    I like knowing there is a way to do
    it if I need to in the future thanks.


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