Passing parameters to VB application and get return value from it 
Author Message
 Passing parameters to VB application and get return value from it

Hello!
Does anybody know how can I pass parameters to VB application (as
parameters to main(int argc, char ** argv) in C or main(String[]) in
Java?
And how can I return value from VB exe application?
Thanks.
Igor Laberov


Sun, 06 Jan 2002 03:00:00 GMT  
 Passing parameters to VB application and get return value from it
Passing to VB is easy; the VB Command$ function contains the command line as
a string. If there are more than one parameter, it's up to you to parse it.

There is no direct way I know to return parameters, but the Win32API lets an
application post an error number when it terminates. You could use this to
return a value, I guess.



Quote:
> Hello!
> Does anybody know how can I pass parameters to VB application (as
> parameters to main(int argc, char ** argv) in C or main(String[]) in
> Java?
> And how can I return value from VB exe application?
> Thanks.
> Igor Laberov



Sun, 06 Jan 2002 03:00:00 GMT  
 Passing parameters to VB application and get return value from it
in VB code the COMMAND function gives you the whole
command line string without EXE name.

There's no way to make VB application return a value, since it is
not design to work in a DOS environment.

Hi



Quote:
> Hello!
> Does anybody know how can I pass parameters to VB application (as
> parameters to main(int argc, char ** argv) in C or main(String[]) in
> Java?
> And how can I return value from VB exe application?
> Thanks.
> Igor Laberov



Sun, 13 Jan 2002 03:00:00 GMT  
 Passing parameters to VB application and get return value from it
You could put a value into an environment variable as your 'exit' value


Quote:
> in VB code the COMMAND function gives you the whole
> command line string without EXE name.

> There's no way to make VB application return a value, since it is
> not design to work in a DOS environment.

> Hi



> > Hello!
> > Does anybody know how can I pass parameters to VB application (as
> > parameters to main(int argc, char ** argv) in C or main(String[]) in
> > Java?
> > And how can I return value from VB exe application?
> > Thanks.
> > Igor Laberov



Sun, 13 Jan 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Can't pass return value or output parameter to ADO if storeproc updates

2. Passing parameters to forms and return values

3. pass parameter to SQL SP from VB and return recordset

4. Passing and returning VB Objects as parameters to VC++ DLL

5. Problem getting parameter returned from stored procedure in VB

6. parameter doesn't return value to ASP or VB

7. Main report value<-pass/return->subReport values (ActiveX Designer Component 6.0)

8. Getting a return value from a SQL Server stored procedure through VB

9. Getting a return value from a SP (SQL 2000, VB 6.0)

10. Passing value to numeric parameter from VB

11. Pass Multiple value to a parameter in VB

12. Help! Passing Parameter values from VB to Crystal

 

 
Powered by phpBB® Forum Software