dc_tocheck()

Converts a string in a field to a check box variable

Call
#include <vv_check.h>
int dc_tocheck(stp, datap, dfldp, cvbufp)

UCHAR *stp

Pointer to string with user's field input

PTR datap Pointer to variable to receive converted field input
DFIELDPTR dfldp Pointer to a data field structure
PTR cvbufp Pointer to a data conversion buffer
Returns  
1 Success. This is the only return value for this function
Description

The current value of the specified string is compared to the check box yes value, 'X'. If they are the same, the string represents a TRUE value. Otherwise, the string is considered FALSE.

Related Functions

dc_frcheck()

Cautions

dc_tocheck() expects a valid, allowed check box character in the field, so no error checking is performed on the input string. The only valid values are " " and "X".


Home Contents Previous Next