VB script to VB.Net back to VB script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob

    #1

    VB script to VB.Net back to VB script

    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 !



  • Mythran

    #2
    Re: VB script to VB.Net back to VB script


    "Rob" <rwchome@comcas t.net> wrote in message
    news:EsydnTocbO 5-u8TZnZ2dnUVZ_vO dnZ2d@comcast.c om...[color=blue]
    >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 !
    >
    >
    >[/color]

    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

    Comment

    • Rob

      #3
      Re: VB script to VB.Net back to VB script

      Thanks Mythran,

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



      "Mythran" <kip_potter@hot mail.comREMOVET RAIL> wrote in message
      news:ell0iDwbGH A.3504@TK2MSFTN GP04.phx.gbl...[color=blue]
      >
      > "Rob" <rwchome@comcas t.net> wrote in message
      > news:EsydnTocbO 5-u8TZnZ2dnUVZ_vO dnZ2d@comcast.c om...[color=green]
      >>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 !
      >>
      >>
      >>[/color]
      >
      > 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[/color]


      Comment

      • Mike Lowery

        #4
        Re: VB script to VB.Net back to VB script


        "Mythran" <kip_potter@hot mail.comREMOVET RAIL> wrote in message
        news:ell0iDwbGH A.3504@TK2MSFTN GP04.phx.gbl...[color=blue]
        >
        > "Rob" <rwchome@comcas t.net> wrote in message
        > news:EsydnTocbO 5-u8TZnZ2dnUVZ_vO dnZ2d@comcast.c om...[color=green]
        >>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 !
        >>[/color]
        >
        > 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.[/color]

        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.


        Comment

        • Mythran

          #5
          Re: VB script to VB.Net back to VB script


          "Rob" <rwchome@comcas t.net> wrote in message
          news:Odmdnc0omK gpQ8TZnZ2dneKdn ZydnZ2d@comcast .com...[color=blue]
          > Thanks Mythran,
          >
          > Do you know where some sample code illustrating this is ? Maybe a
          > website or 2 ?
          >
          >
          >
          > "Mythran" <kip_potter@hot mail.comREMOVET RAIL> wrote in message
          > news:ell0iDwbGH A.3504@TK2MSFTN GP04.phx.gbl...[color=green]
          >>
          >> "Rob" <rwchome@comcas t.net> wrote in message
          >> news:EsydnTocbO 5-u8TZnZ2dnUVZ_vO dnZ2d@comcast.c om...[color=darkred]
          >>>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 !
          >>>
          >>>
          >>>[/color]
          >>
          >> 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[/color]
          >
          >[/color]

          Hope this is what you need :)



          HTH,
          Mythran

          Comment

          Working...