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

New Post: Executing multiple functions

$
0
0
I have the following script:
 string script = @"function1(a) { }  function2(b) { function1(b); }"
and the following C# code:
 engine.Execute(script);
 engine.Script.function1("blah");
I'm getting an exception on the engine.Script "function1 is not defined". What am I doing wrong?

Viewing all articles
Browse latest Browse all 2297

Trending Articles