CallFn( )
Calls a registered function and returns the value that the function returned, using the type declared by ReturnType in RegFn call.
Syntax
CallFN(nFunctionHandle, Arg1[, Arg2[, ...]])
nFunctionHandle
The function handle from a previous call to RegFn( ) or RegFn32( ).
Arg1, Arg2, ....
Arguments required by the function referenced by FnNum. You must pass as many arguments as were declared when the function was registered or an error occurs.
All arguments must match their declared type as follows:
-
F, D – must be a floating point number.
-
I, L – must be an integer.
-
C – must be a string passed by value, or 0 (zero). If 0, a null pointer is passed.
Return Types
User-defined in RegFn( ) or RegFn32( ).