Scripting Integrator - Online Help
Scripting Integrator
Questions / Feedback?

Function Event

Fired when a custom function is called.

Syntax

[VB.NET]
Public Event OnFunction As OnFunctionHandler
[C#]
public event OnFunctionHandler OnFunction;

public delegate void OnFunctionHandler(object sender, JavascriptFunctionEventArgs e);

class JavascriptFunctionEventArgs : EventArgs {
  string Name {get;}
  string ReturnValue {get; set;}
}

Remarks

This event fires when a custom function is called. Custom functions must be added by calling AddFunction before calling Eval or EvalFile.

Name specifies the name of the function.

ReturnValue should be set to the calculated return value.

When this event fires query the Parameters collection to obtain the parameters and their values. After performing the necessary calculations to determine the result, set the ReturnValue parameter.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 1.0.6240.0