|
-
Oct 5th, 2000, 08:34 PM
#1
Thread Starter
Frenzied Member
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]
-
Oct 5th, 2000, 08:40 PM
#2
Code:
RetVal = Shell("C:\program.exe", vbNormalFocus)
-
Oct 5th, 2000, 08:41 PM
#3
Thread Starter
Frenzied Member
How then would i make retval a value that
i want..
-
Oct 5th, 2000, 08:47 PM
#4
-
Oct 5th, 2000, 09:06 PM
#5
Thread Starter
Frenzied Member
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 ..
-
Oct 5th, 2000, 11:16 PM
#6
Thread Starter
Frenzied Member
hmm..
your still missing it.. thanks though.
I guess Ill just figure out a
different way to do what i want.
-
Oct 6th, 2000, 02:36 AM
#7
Addicted Member
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
-
Oct 6th, 2000, 04:12 AM
#8
Frenzied Member
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.
-
Oct 6th, 2000, 02:02 PM
#9
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|