Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ form_f_vali(3x) — Atari System V 1.1-06

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

curses(3X)

forms(3X)





   form_field_validation(3X)                         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).















   8/91                                                                 Page 1





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026