Navigation:  Reference > Functions By Category > Containers and Xbase Calls >

CallFunction()

Previous pageReturn to chapter overviewNext page

Call to an Xbase++ function if the symbol exist at runtime.

Syntax:

CallFunction(<cFuncName>,<params,...> ) -> xResult

Parameters:

<cFuncName>

String containing the name of the Xbase++ function to call.

<params,...>

Parameters suplied to the called function.

Return Value:

Return value of the called function. If the called function not available at runtime CallFunction() simply will return NIL instead of raise an error.

Remarks:

The only advantadge of use this function over a macro call it's only the avoid of raise an error if the function not available at runtime, but the tests  reveals that a low complexity macro call sometimes is a bit faster that acces a function with CallFunction()