form_field_validation(3X) DG/UX 5.4.2 form_field_validation(3X)
NAME
formfieldvalidation: setfieldtype, fieldtype, fieldarg - forms
field data type validation
SYNOPSIS
#include <form.h>
int setfieldtype(FIELD *field, FIELDTYPE *type, ...);
FIELDTYPE *fieldtype(FIELD *field);
char *fieldarg(FIELD *field);
DESCRIPTION
setfieldtype associates the specified field type with field.
Certain field types take additional arguments. TYPEALNUM, for
instance, requires one, the minimum width specification for the
field. The other predefined field types are: TYPEALPHA, TYPEENUM,
TYPEINTEGER, TYPENUMERIC, TYPEREGEXP.
fieldtype returns a pointer to the field type of field. NULL is
returned if no field type is assigned.
fieldarg returns a pointer to the field arguments associated with
the field type of field. NULL is returned if no field type is
assigned.
RETURN VALUE
fieldtype and fieldarg return NULL on error.
setfieldtype returns one of the following:
EOK - The function returned successfully.
ESYSTEMERROR - System error.
NOTES
The header file <form.h> automatically includes the header files
<eti.h> and <curses.h>.
SEE ALSO
curses(3X), forms(3X).
Licensed material--property of copyright holder(s) 1