Scripting Integrator - Online Help
Scripting Integrator
Questions / Feedback?

Function Event

Fired when a custom function is called.

Syntax

typedef void __fastcall (__closure *TibsJavaScriptFunctionEvent)(System::TObject* Sender, TibsJavaScriptFunctionEventParams *e);

__property TibsJavaScriptFunctionEvent OnFunction = {read=FOnFunction, write=FOnFunction};

typedef struct {
     String Name;
     String ReturnValue;
} TibsJavaScriptFunctionEventParams;

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