Home All Groups Group Topic Archive Search About

VB script to VB.Net back to VB script

Author
3 May 2006 9:56 PM
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 !

Author
3 May 2006 10:28 PM
Mythran
Show quote Hide quote
"Rob" <rwch***@comcast.net> wrote in message
news:EsydnTocbO5-u8TZnZ2dnUVZ_vOdnZ2d@comcast.com...
>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