Substitute For Microsoft Script Control

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

    #1

    Substitute For Microsoft Script Control

    I am using the Microsoft Script Control on a VB.Net winforms form, and I use
    it to evaluate text based calculations that come from a database. For
    example, it evaluates "1+1" or "True And False Or True". It does that with
    code that looks like the following:

    If myForm.fScriptC ontrol.ScriptCo ntrol1.Eval("1+ 1") = 2 Then Return True

    I now need this type of functionality to be used in web services, and I
    cannot figure out how to use this script control separate from placing it on
    a form. I cannot call a form with web services. Should there be a way to use
    this scripting directly?

    Derek


  • Gillard

    #2
    Re: Substitute For Microsoft Script Control

    what about a class in vb.net that do the job?????????


    "Derek Hart" <derekmhart@yah oo.comwrote in message
    news:#be91yH4IH A.4908@TK2MSFTN GP04.phx.gbl...
    I am using the Microsoft Script Control on a VB.Net winforms form, and I
    use it to evaluate text based calculations that come from a database. For
    example, it evaluates "1+1" or "True And False Or True". It does that with
    code that looks like the following:
    >
    If myForm.fScriptC ontrol.ScriptCo ntrol1.Eval("1+ 1") = 2 Then Return True
    >
    I now need this type of functionality to be used in web services, and I
    cannot figure out how to use this script control separate from placing it
    on a form. I cannot call a form with web services. Should there be a way
    to use this scripting directly?
    >
    Derek
    >

    Comment

    • Gillard

      #3
      Re: Substitute For Microsoft Script Control

      it is here as an attachment

      use :

      Dim calc As New mcCalc()

      txtAnswer.Text = calc.evaluate(t xtExpression.Te xt)


      "Derek Hart" <derekmhart@yah oo.comwrote in message
      news:#be91yH4IH A.4908@TK2MSFTN GP04.phx.gbl...
      I am using the Microsoft Script Control on a VB.Net winforms form, and I
      use it to evaluate text based calculations that come from a database. For
      example, it evaluates "1+1" or "True And False Or True". It does that with
      code that looks like the following:
      >
      If myForm.fScriptC ontrol.ScriptCo ntrol1.Eval("1+ 1") = 2 Then Return True
      >
      I now need this type of functionality to be used in web services, and I
      cannot figure out how to use this script control separate from placing it
      on a form. I cannot call a form with web services. Should there be a way
      to use this scripting directly?
      >
      Derek
      >

      Comment

      • Derek Hart

        #4
        Re: Substitute For Microsoft Script Control

        What namespace is this in?


        "Gillard" <gillard_george s@hotmail.comwr ote in message
        news:%23kQmmgO4 IHA.4340@TK2MSF TNGP06.phx.gbl. ..
        it is here as an attachment
        >
        use :
        >
        Dim calc As New mcCalc()
        >
        txtAnswer.Text = calc.evaluate(t xtExpression.Te xt)
        >
        >
        "Derek Hart" <derekmhart@yah oo.comwrote in message
        news:#be91yH4IH A.4908@TK2MSFTN GP04.phx.gbl...
        >I am using the Microsoft Script Control on a VB.Net winforms form, and I
        >use it to evaluate text based calculations that come from a database. For
        >example, it evaluates "1+1" or "True And False Or True". It does that
        >with
        >code that looks like the following:
        >>
        >If myForm.fScriptC ontrol.ScriptCo ntrol1.Eval("1+ 1") = 2 Then Return True
        >>
        >I now need this type of functionality to be used in web services, and I
        >cannot figure out how to use this script control separate from placing it
        >on a form. I cannot call a form with web services. Should there be a way
        >to use this scripting directly?
        >>
        >Derek
        >>

        Comment

        Working...