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]
Printable View
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]
Code:RetVal = Shell("C:\program.exe", vbNormalFocus)
How then would i make retval a value that
i want..
Code:RetVal = yourvalue
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 ..
hmm..
your still missing it.. thanks though.
I guess Ill just figure out a
different way to do what i want.
:)
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.
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. :rolleyes:
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.
:)