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.
 
Back
Top