Hi ravetam,
There are a couple of ways to do it. First, you can use
Another way is to use a host variable:
Cheers!
There are a couple of ways to do it. First, you can use
HostFunctions.toByte()
:engine.AddHostObject("host", new HostFunctions()); engine.Execute(@" var b = host.toByte(162); ");
engine.AddHostType("Byte", typeof(Byte)); engine.Execute(@" var b = host.newVar(Byte); b.value = 162; ");