D
Derek Hart
I am using an MSScriptControl in vb.net to do an evaluation of a text
string:
tempAnswer = MyScriptControl.Eval(MyScriptString)
But how can I use this to get a return value from a vbscript function:
Function Foo() As Integer
If MyValue = 1 Then
Foo=1
Else
Foo=2
End
End Function
tempCode = "Code Above - Read From A Database"
tempAnswer = MyScriptControl.Run(tempCode)
Do I use the Run command. I do not see a return statement in vbscript. Can
this be done in vb.net?
string:
tempAnswer = MyScriptControl.Eval(MyScriptString)
But how can I use this to get a return value from a vbscript function:
Function Foo() As Integer
If MyValue = 1 Then
Foo=1
Else
Foo=2
End
End Function
tempCode = "Code Above - Read From A Database"
tempAnswer = MyScriptControl.Run(tempCode)
Do I use the Run command. I do not see a return statement in vbscript. Can
this be done in vb.net?