VB script to VB.Net back to VB script

R

Rob

I am working with an ERP package that has the capability to pass variables
to and from VB script....

Is there a way from within VB script to call a vb.net program AND pass it
variables from the VB script AND return variables from the vb.net program to
the VB script program ?

Thanks !
 
M

Mythran

Rob said:
I am working with an ERP package that has the capability to pass variables
to and from VB script....

Is there a way from within VB script to call a vb.net program AND pass it
variables from the VB script AND return variables from the vb.net program
to
the VB script program ?

Thanks !

You can create the VB.Net library as a COM component. Then you can use
VBScript's CreateObject function to create the class you need and from there
call methods on it. VBScript supports ByRef as well, so you can pass
parameters ByRef. You can also retrieve the return value if need-be.

Mythran
 
R

Rob

Thanks Mythran,

Do you know where some sample code illustrating this is ? Maybe a website
or 2 ?
 
M

Mike Lowery

Mythran said:
You can create the VB.Net library as a COM component. Then you can use
VBScript's CreateObject function to create the class you need and from there
call methods on it. VBScript supports ByRef as well, so you can pass
parameters ByRef. You can also retrieve the return value if need-be.

That's the most appropriate way, but when all else fails, just create a text
file with the values you want to pass and parse it in the called program.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top