Hi,
There is a problem with marshaling of decimal values. Following code does not work. Type mismatch error
Igor
There is a problem with marshaling of decimal values. Following code does not work. Type mismatch error
using(var scripter = new VBScriptEngine(WindowsScriptEngineFlags.EnableDebugging))
{
decimal num1 = 3;
decimal num2 = 2;
scripter.Script.num1 = num1;
scripter.Script.num2 = num2;
Console.WriteLine(scripter.Evaluate("num1+num2"));
}
Regards,Igor