Query: field_index
OS: netbsd
Section: 3
Links: netbsd man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FORM_PAGE(3) BSD Library Functions Manual FORM_PAGE(3)NAMEcurrent_field, field_index, form_page, form_max_page, set_current_field, set_form_page -- form libraryLIBRARYCurses Form Library (libform, -lform)SYNOPSIS#include <form.h> FIELD * current_field(FORM *form); int field_index(FIELD *field); int form_page(FORM *form); int form_max_page(FORM *form); int set_current_field(FORM *form, FIELD *field); int set_form_page(FORM *form, int page);DESCRIPTIONThe current_field() returns a pointer to the structure for the field that is currently active on the page. If there is an error, current_field() will return NULL. Calling field_index() will return the index of the given field in the form field array. The current page the form is on can be determined by using form_page(), the current page of a form can be programmatically set by calling set_form_page(). The maximum page number for a form can be found by calling the function form_max_page() but note that this function is a NetBSD extension and must not be used in portable forms library programs. The current field on the form may be set by calling set_current_field() which will set the current field to the one given.RETURN VALUESFunctions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following error values: E_OK The function was successful. E_BAD_ARGUMENT The function was passed a bad argument. E_NOT_CONNECTED The given field is not associated with a form. E_BAD_STATE The function was called from within an init or term function. E_INVALID_FIELD The field given is not part of the given form.SEE ALSOcurses(3), forms(3)NOTESThe header <form.h> automatically includes both <curses.h> and <eti.h>. The form_max_page is a NetBSD extension and should not be used in portable applications.BSDJanuary 1, 2001 BSD
Related Man Pages |
---|
current_field(3curses) - opensolaris |
field_index(3curses) - opensolaris |
set_current_field(3curses) - opensolaris |
current_field(3) - netbsd |
form_max_page(3) - netbsd |
Similar Topics in the Unix Linux Community |
---|
ksh syntax explanation - from mimetool |
Field separator in awk |
Array output through a for loop problematic with multiple elements. |