Converts a radio button variable to a string for display in a field
| Call | |
| #include <vv_radio.h> | |
| int dc_frradio(stp, datap, dfldp, dfmp) | |
|
UCHAR *stp |
Pointer to a string buffer |
| PTR datap | Pointer to data variable containing a radio button value |
| DFIELDPTR dfldp | Pointer to a data field structure |
| PTR dfmp | Pointer to data form with radio buttons |
| Returns | |
| 1 | The radio button value was successfully converted to a string. This is the only return value for this function. |
| Description
dc_frradio() copies the protected characters from the specified field's field picture to the string buffer. It checks if the radio button number (relative to the first radio button) is the same as that of the underlying data variable. If it is, the selection character is placed in the field; otherwise, the unselected character is placed in the field. |
|
| Related Functions | |
| Cautions
This function assumes that the string buffer is large enough to hold the resulting string, including a null terminator '/0'. |
|