4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>form_page</B> - set and get form page number
12 <H2>SYNOPSIS</H2><PRE>
13 <B>#include</B> <B><form.h></B>
14 int set_current_field(FORM *form, FIELD *field);
15 FIELD *current_field(const FORM *);
16 int set_form_page(FORM *form, int n);
17 int form_page(const FORM *form);
18 int field_index(const FIELD *field);
22 <H2>DESCRIPTION</H2><PRE>
23 The function <B>set_current</B> <B>field</B> sets the current field of
24 the given form; <B>current_field</B> returns the current field of
27 The function <B>set_form_page</B> sets the form's page number
28 (goes to page <I>n</I> of the form).
30 The function <B>form_page</B> returns the form's current page
33 The function <B>field_index</B> returns the index of the field in
34 the field array of the form it is connected to. It returns
35 <B>ERR</B> if the argument is the null pointer or the field is
40 <H2>RETURN VALUE</H2><PRE>
41 Except for <B>form_page</B>, each routine returns one of the fol-
44 <B>E_OK</B> The routine succeeded.
47 System error occurred (see <B>errno</B>).
50 Routine detected an incorrect or out-of-range argu-
54 Routine was called from an initialization or termina-
57 <B>E_INVALID_FIELD</B>
58 Contents of a field are not valid.
60 <B>E_REQUEST_DENIED</B>
61 The form driver could not process the request.
65 <H2>SEE ALSO</H2><PRE>
66 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="form.3x.html">form(3x)</A></B>.
72 The header file <B><form.h></B> automatically includes the header
73 file <B><curses.h></B>.
77 <H2>PORTABILITY</H2><PRE>
78 These routines emulate the System V forms library. They
79 were not supported on Version 7 or BSD versions.
84 Juergen Pfeifer. Manual pages and adaptation for new
85 curses by Eric S. Raymond.
132 Man(1) output converted with
133 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>