'引用Microsoft Script Control 1.0
Dim aa As New MSScriptControl.ScriptControl
Private Sub Command1_Click()
Dim a As String
Dim b As String
a = "2"
b = "2"
If a = b Then
MsgBox ("ok")
End If
aa.Language = "vbscript"
b = "=1 OR 1=1"
If CBool(aa.Eval(a & b)) = True Then
MsgBox "ok"
End If
End Sub