4 \fBform_page\fR - set and get form page number
6 \fB#include <form.h>\fR
8 int set_current_field(FORM *form, FIELD *field);
10 FIELD *current_field(const FORM *);
12 int set_form_page(FORM *form, int n);
14 int form_page(const FORM *form);
16 int field_index(const FIELD *field);
19 The function \fBset_current field\fR sets the current field of the given
20 form; \fBcurrent_field\fR returns the current field of the given form.
22 The function \fBset_form_page\fR sets the form's page number (goes to page
25 The function \fBform_page\fR returns the form's current page number.
27 The function \fBfield_index\fR returns the index of the field in the
28 field array of the form it is connected to. It returns \fBERR\fR if
29 the argument is the null pointer or the field is not connected.
31 Except for \fBform_page\fR, each routine returns one of the following:
34 The routine succeeded.
37 System error occurred (see \fBerrno\fR).
40 Routine detected an incorrect or out-of-range argument.
43 Routine was called from an initialization or termination function.
46 Contents of a field are not valid.
48 \fBE_REQUEST_DENIED\fR
49 The form driver could not process the request.
51 \fBcurses\fR(3X), \fBform\fR(3X).
53 The header file \fB<form.h>\fR automatically includes the header file
56 These routines emulate the System V forms library. They were not supported on
57 Version 7 or BSD versions.
59 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
62 .\"# The following sets edit modes for GNU EMACS