Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Substitute For Microsoft Script Control

Reply
 
Old 07-07-2008   #1 (permalink)
Derek Hart


 
 

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 SpecsSystem Spec
Old 07-08-2008   #2 (permalink)
Gillard


 
 

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 SpecsSystem Spec
Old 07-08-2008   #3 (permalink)
Gillard


 
 

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 SpecsSystem Spec
Old 07-08-2008   #4 (permalink)
Derek Hart


 
 

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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46