dc_toradio()

Converts a string in a field to a radio button variable

Call
#include <vv_radio.h>
int dc_toradio(stp, datap, dfldp, dfmp)

PTR datap

Pointer to variable to receive converted field input

DFIELDPTR dfldp Pointer to a data field structure
PTR dfmp Pointer to a data form with radio buttons
Returns  
1 Success. This is the only return value for this function
Description

This routine will loop through all radio buttons in the group. When a selected radio button is found, the item number relative to the begining of the group is returned.

Related Functions

dc_frradio()

Cautions

dc_toradio() expects a valid, allowed radio button character in the field; therefore, no error checking is performed on the input string.


Home Contents Previous Next