VB script to VB.Net back to VB script

  • Thread starter Thread starter Rob
  • Start date Start date
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 !
 
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
 
Thanks Mythran,

Do you know where some sample code illustrating this is ? Maybe a website
or 2 ?
 
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

Similar Threads

Embed VB Script in COM DLL 5
how to wait for a called prog to finish 5
VB and UNIX 1
UDTs (as was vb6) 113
Pass a structure to a C++ dll 2
vb.net and winsock 3
Convert C to VB 2
SQl 2000 job needs to run .NET code 12

Back
Top