Greetings!
By-reference arguments to VBScript functions are not currently supported. We'll use the work item you created to track this issue. Thanks for reporting it!
In the meantime, you can create a wrapper in VBScript that calls the target function and returns its output to the host without by-reference parameters. For example:
And then:
Thanks again, and good luck!
By-reference arguments to VBScript functions are not currently supported. We'll use the work item you created to track this issue. Thanks for reporting it!
In the meantime, you can create a wrapper in VBScript that calls the target function and returns its output to the host without by-reference parameters. For example:
publicclass Holder<T> { public T Value; }
engine.Execute(@" sub TestSubWrapper(holder) dim value value = holder.Value call TestSub(value) holder.Value = value end sub "); var holder = new Holder<double> { Value = 10.0 }; engine.Script.TestSubWrapper(holder); Console.WriteLine(holder.Value);