|
From: Derek Hart on 7 Jul 2008 17:59 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.fScriptControl.ScriptControl1.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
From: Gillard on 8 Jul 2008 06:46 what about a class in vb.net that do the job????????? "Derek Hart" <derekmhart(a)yahoo.com> wrote in message news:#be91yH4IHA.4908(a)TK2MSFTNGP04.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.fScriptControl.ScriptControl1.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 >
From: Gillard on 8 Jul 2008 06:48 it is here as an attachment use : Dim calc As New mcCalc() txtAnswer.Text = calc.evaluate(txtExpression.Text) "Derek Hart" <derekmhart(a)yahoo.com> wrote in message news:#be91yH4IHA.4908(a)TK2MSFTNGP04.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.fScriptControl.ScriptControl1.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 >
From: Derek Hart on 8 Jul 2008 13:50 What namespace is this in? "Gillard" <gillard_georges(a)hotmail.com> wrote in message news:%23kQmmgO4IHA.4340(a)TK2MSFTNGP06.phx.gbl... > it is here as an attachment > > use : > > Dim calc As New mcCalc() > > txtAnswer.Text = calc.evaluate(txtExpression.Text) > > > "Derek Hart" <derekmhart(a)yahoo.com> wrote in message > news:#be91yH4IHA.4908(a)TK2MSFTNGP04.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.fScriptControl.ScriptControl1.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 >>
|
Pages: 1 Prev: Crystal Report To Excel Problem Next: Enumerate List of ODBC DSNs |