VBScript functionality in C# application

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

    #1

    VBScript functionality in C# application

    Hi,
    Currently we are developing a C# application which does some standard
    validations (datatype/range/min lengh/max length etc.) on the form data.
    We are planning to provide a VB scripting feature, so that the user can
    specify his own validation for the form data.

    The system requirement is , on clicking the script button, it will launch a
    form with a editbox wherein the user will enter the VB script.
    a)The system should validate whether the entered VBScript code is valid or
    not
    b)Pass the parameters from c# to the VBScript parameters.
    c)Execute the VBscript created by the user
    d)Fetch the return value and assign it back to the C# variable.

    Have you developed any such Scripting feature?
    Can you provide some know-hows?

    Thanx.

    Regards,
    R.Balaji


  • Günter Prossliner

    #2
    Re: VBScript functionality in C# application

    You can use the Microsoft Script Control via COM - Interop.

    GP

    "R.Balaji" <rbalaji007@hot mail.com> wrote in message
    news:O90GZswZDH A.1816@TK2MSFTN GP09.phx.gbl...[color=blue]
    > Hi,
    > Currently we are developing a C# application which does some standard
    > validations (datatype/range/min lengh/max length etc.) on the form data.
    > We are planning to provide a VB scripting feature, so that the user can
    > specify his own validation for the form data.
    >
    > The system requirement is , on clicking the script button, it will launch[/color]
    a[color=blue]
    > form with a editbox wherein the user will enter the VB script.
    > a)The system should validate whether the entered VBScript code is valid or
    > not
    > b)Pass the parameters from c# to the VBScript parameters.
    > c)Execute the VBscript created by the user
    > d)Fetch the return value and assign it back to the C# variable.
    >
    > Have you developed any such Scripting feature?
    > Can you provide some know-hows?
    >
    > Thanx.
    >
    > Regards,
    > R.Balaji
    >
    >[/color]


    Comment

    • Anders Eriksson

      #3
      Re: VBScript functionality in C# application

      On Wed, 20 Aug 2003 16:36:14 +0530, R.Balaji wrote:
      [color=blue]
      > Hi,
      > Currently we are developing a C# application which does some standard
      > validations (datatype/range/min lengh/max length etc.) on the form data.
      > We are planning to provide a VB scripting feature, so that the user can
      > specify his own validation for the form data.[/color]

      Have a look at this article:
      http://msdn.microsoft.com/library/de...-us/dnclinic/h
      tml/scripting061120 01.asp

      // Anders
      --
      NB! Links may wrap!!

      Comment

      • R.Balaji

        #4
        Re: VBScript functionality in C# application

        Thank you

        "Günter Prossliner" <g.prossliner@g mx.at> wrote in message
        news:ey9$twwZDH A.2256@TK2MSFTN GP10.phx.gbl...[color=blue]
        > You can use the Microsoft Script Control via COM - Interop.
        >
        > GP
        >
        > "R.Balaji" <rbalaji007@hot mail.com> wrote in message
        > news:O90GZswZDH A.1816@TK2MSFTN GP09.phx.gbl...[color=green]
        > > Hi,
        > > Currently we are developing a C# application which does some standard
        > > validations (datatype/range/min lengh/max length etc.) on the form data.
        > > We are planning to provide a VB scripting feature, so that the user can
        > > specify his own validation for the form data.
        > >
        > > The system requirement is , on clicking the script button, it will[/color][/color]
        launch[color=blue]
        > a[color=green]
        > > form with a editbox wherein the user will enter the VB script.
        > > a)The system should validate whether the entered VBScript code is valid[/color][/color]
        or[color=blue][color=green]
        > > not
        > > b)Pass the parameters from c# to the VBScript parameters.
        > > c)Execute the VBscript created by the user
        > > d)Fetch the return value and assign it back to the C# variable.
        > >
        > > Have you developed any such Scripting feature?
        > > Can you provide some know-hows?
        > >
        > > Thanx.
        > >
        > > Regards,
        > > R.Balaji
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Scott Glasgow

          #5
          Re: VBScript functionality in C# application

          Take a look at this...it might be better suited instead of using the MS
          Script Control via Interop.



          "R.Balaji" <rbalaji007@hot mail.com> wrote in message
          news:O3iBAbKbDH A.3768@tk2msftn gp13.phx.gbl...[color=blue]
          > Thank you
          >
          > "Günter Prossliner" <g.prossliner@g mx.at> wrote in message
          > news:ey9$twwZDH A.2256@TK2MSFTN GP10.phx.gbl...[color=green]
          > > You can use the Microsoft Script Control via COM - Interop.
          > >
          > > GP
          > >
          > > "R.Balaji" <rbalaji007@hot mail.com> wrote in message
          > > news:O90GZswZDH A.1816@TK2MSFTN GP09.phx.gbl...[color=darkred]
          > > > Hi,
          > > > Currently we are developing a C# application which does some standard
          > > > validations (datatype/range/min lengh/max length etc.) on the form[/color][/color][/color]
          data.[color=blue][color=green][color=darkred]
          > > > We are planning to provide a VB scripting feature, so that the user[/color][/color][/color]
          can[color=blue][color=green][color=darkred]
          > > > specify his own validation for the form data.
          > > >
          > > > The system requirement is , on clicking the script button, it will[/color][/color]
          > launch[color=green]
          > > a[color=darkred]
          > > > form with a editbox wherein the user will enter the VB script.
          > > > a)The system should validate whether the entered VBScript code is[/color][/color][/color]
          valid[color=blue]
          > or[color=green][color=darkred]
          > > > not
          > > > b)Pass the parameters from c# to the VBScript parameters.
          > > > c)Execute the VBscript created by the user
          > > > d)Fetch the return value and assign it back to the C# variable.
          > > >
          > > > Have you developed any such Scripting feature?
          > > > Can you provide some know-hows?
          > > >
          > > > Thanx.
          > > >
          > > > Regards,
          > > > R.Balaji
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...