Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Decimal values problems

$
0
0
Hi,

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

Viewing all articles
Browse latest Browse all 2297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>