Defining a Range Structure for the Field Type

You must first define a range structure for the field type. The first member of the range structure should hold a minimum value and the second structure member a maximum value. These structure members must be of the correct data type for the field type. As an example, the range structure for a F_SHORT field is shown below:

typedef struct rgshort_struct
/* SHORT RANGE STRUCTURE
*/
{
   
    short rgmin;
/* lowest acceptable value
*/
    short rgmax;
/* highest acceptable value
*/
} RGSHORT, *RGSHORTPTR;
   

You can use one of the range structures already defined in vv_form.h for the system field types.


Home Contents Previous Next