Function _conGetND() Foundation

Reads the value of a numeric container as a floating point number.

Syntax
XPPAPIRET _conGetND(ContainerHandle chn, double *ndValue);
Parameters
ContainerHandle chn
Handle of a container with a numeric value.
double *ndValue
Pointer to a buffer of type double into which the value of the numeric container is to be written.
Return

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.

Description

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++.

Examples
/* 
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 */ 
} 
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.