Function _retnl() Foundation

Returns an integer numeric value to Xbase++.

Syntax
BOOL _retnl(XppParamList pList, LONG nIntVal);
Parameters
XppParamList pList
Pointer to the Xbase++ parameter list of the function whose return value is being set.
LONG nIntVal
Numeric return value.
Return

Always returns TRUE.

Description

_retnl() is used to return an integer numeric value. Calling this function does not exit the actual function, but merely sets the return value. After the call an access to other C-API functions except for _conRelease() is not allowed anymore and the function should return immediately.

To insure correct operation, a return value has always to be set. In Xbase++, NIL should be returned for procedures, which are functions without return values.

Examples
/* 
Returns a LONG value as a numeric value 
*/ 
#include <xpppar.h> 

_retnl(<pList>, 42); 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.