Function _retnd() Foundation

Returns a floating point numeric value to Xbase++.

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

Always returns TRUE.

Description

_retnd() is used to return a DOUBLE as a 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 double value 
*/ 
#include <xpppar.h> 

retnd(<pList>, 19.940725); 

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.