Hi All,
I'm not sure if this forum is the right place to throw my problem.
VB 2005
Refference : MS Script Control
I have this simple equation:
But The result is False.
I tried to evaluate the left side of the equation which gives me the desired result:
No problem with integers.
Any help would be appreciated.
I'm not sure if this forum is the right place to throw my problem.
VB 2005
Refference : MS Script Control
I have this simple equation:
Code:
Dim str2Eval As String = "1.1 + 2.2 = 3.3"
Dim sscript As New MSScriptControl.ScriptControl
sscript.Language = "VBScript"
Try
Label1.Text = sscript.Eval(str2Eval)
Catch ex As Exception
Label1.Text = Label1.Text = ex.Message
Exit Try
End Try
I tried to evaluate the left side of the equation which gives me the desired result:
Code:
Dim str2Eval As String = "1.1 + 2.2"
..
Label1.Text = sscript.Eval(str2Eval)
'gives me 3.3
No problem with integers.
Any help would be appreciated.