![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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.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 |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Substitute For Microsoft Script Control what about a class in vb.net that do the job????????? "Derek Hart" <derekmhart@xxxxxx> wrote in message news:#be91yH4IHA.4908@xxxxxx Quote: > 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 > |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Substitute For Microsoft Script Control it is here as an attachment use : Dim calc As New mcCalc() txtAnswer.Text = calc.evaluate(txtExpression.Text) "Derek Hart" <derekmhart@xxxxxx> wrote in message news:#be91yH4IHA.4908@xxxxxx Quote: > 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 > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Substitute For Microsoft Script Control What namespace is this in? "Gillard" <gillard_georges@xxxxxx> wrote in message news:%23kQmmgO4IHA.4340@xxxxxx Quote: > it is here as an attachment > > use : > > Dim calc As New mcCalc() > > txtAnswer.Text = calc.evaluate(txtExpression.Text) > > > "Derek Hart" <derekmhart@xxxxxx> wrote in message > news:#be91yH4IHA.4908@xxxxxx Quote: >> 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 >> |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Third Party FLASH substitute.. | Software | |||
| Substitute to Money | Vista General | |||
| substitute for subst | VB Script | |||
| Substitute | Vista mail | |||
| what is good substitute for briefcase | Vista General | |||