Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ form_field_validation(3X) — Dell System V Release 4 Issue 2.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

curses(3X)

forms(3X)



form_field_validation(3X)        UNIX System V        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:
      E_OK           - The function returned successfully.
      E_SYSTEM_ERROR - System error.

NOTES
      The header file <form.h> automatically includes the header files <eti.h>
      and <curses.h>.

SEE ALSO
      curses(3X), forms(3X)

















10/89                                                                    Page 1





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