Function _conGetND() Foundation
Reads the value of a numeric container as a floating point number.
XPPAPIRET _conGetND(ContainerHandle chn, double *ndValue);
The function returns an error code (XPP_ERR_...) when the container chn is not of numeric type. If the return value is NULL the operation was successful.
The function _conGetND() accesses the value of a container of numeric type. The value is written into a buffer of double type. The data type double can take any numeric value permitted in Xbase++.
/*
Determines the numeric value of a container.
*/
#include <xppcon.h>
ContainerHandle hNumeric;
XPPAPIRET xr;
double ndValue;
/* Assigns a value to ... hNumeric */
xr = _conGetND(hNumeric, &ndValue);
if (xr == 0)
{
/* ... operations with the double value */
}
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.