form_field(3X) LIBRARY FUNCTIONS form_field(3X)
NAME
formfield: setformfields, formfields, fieldcount,
movefield - connect fields to forms
SYNOPSIS
#include <form.h>
int setformfields(FORM *form, FIELD **field);
FIELD **formfields(FORM *form);
int fieldcount(FORM *form);
int movefield(FIELD *field, int frow, int fcol);
DESCRIPTION
setformfields changes the fields connected to form to
fields. The original fields are disconnected.
formfields returns a pointer to the field pointer array
connected to form.
fieldcount returns the number of fields connected to form.
movefield moves the disconnected field to the location
frow, fcol in the forms subwindow.
RETURN VALUE
formfields returns NULL on error. fieldcount returns -1
on error. setformfields and movefield return one of the
following:
E_OK - The function returned successfully.
E_CONNECTED - The field is already connected to a form.
E_SYSTEM_ERROR - System error.
E_BAD_ARGUMENT - An argument is incorrect.
E_POSTED - The form is posted.
NOTES
The header file <form.h> automatically includes the header
files <eti.h> and <curses.h>.
SEE ALSO
curses(3X), forms(3X).
1