Function _conGetL() Foundation
Copies the value of a logical container into a buffer.
XPPAPIRET _conGetL(ContainerHandle chl, BOOL *lValue);
The function returns an error code (XPP_ERR_...) when the container chl is not of logical type. If the return value is NULL the operation was successful.
_conGetL() accesses the value of a logical container. The parameter *lValue contains TRUE (= 1) or FALSE (= 0) after the call. If the function returns an error the passed buffer is not changed.
/*
Reads a logical value and outputs a response to <stdout>
*/
#include <xppcon.h>
#include <stdio.h>
ContainerHandle hLogic;
XPPAPIRET xr;
BOOL logic;
/* Assigns a value to ... hLogic */
xr = _conGetL(hLogic, &logic);
if (xr == 0)
{
if (logic == 0)
printf("Incorrect\n");
else /* logic == 1 */
printf("Correct\n");
}
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.