FasctScript functions in FastCube
Hello,
I'd like to add some utility functions in fastscript, which i'm using in fastcube.
I know how to add function and procedure calls stubs and bind them to the method dispatcher.
What i'm missing is how to create functions inside fastscript and make them available to fastcube formulas.
Any hint?
Thanks
I'd like to add some utility functions in fastscript, which i'm using in fastcube.
I know how to add function and procedure calls stubs and bind them to the method dispatcher.
What i'm missing is how to create functions inside fastscript and make them available to fastcube formulas.
Any hint?
Thanks
Comments
You can add new functions in event TfcSlice.OnInterpreterCreated: TfcSliceInterpreterCreated
TfcSliceInterpreterCreated = procedure(ASlice: TfcSlice; AInterpreter: TObject; ATypeInterpreter: TfcTypeInterpreter) of Object;
TfcTypeInterpreter =
(
fcti_MeasureCalculation,
fcti_MeasureFilter
);
Oleg Pryalkov
What I meant is how do I define a function inside fastscript, and make it available to the formulas I add to the slice?
Let's say I have a function I need to call often, and it's written in fastscript language. Where and how do I add it to the interpreter assigned to the slice to make it available to formulas i might add?
Thanks
In event:
TfcSlice.OnInterpreterCreated: TfcSliceInterpreterCreated
Oleg Pryalkov