MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Curses Library Functions                       formpage(3CURSES)



NAME
     formpage, setformpage, setcurrentfield,  currentfield,
     fieldindex - set forms current page and field

SYNOPSIS
     cc [ flag... ] file... -lform  -lcurses  [ library... ]
     #include 

     int setformpage(FORM *form, int page);


     int formpage(FORM *form);


     int setcurrentfield(FORM *form, FIELD *field);


     FIELD *currentfield(FORM*form);


     int fieldindex(FIELD *field);


DESCRIPTION
     setformpage() sets  the  page  number  of  form  to  page.
     formpage() returns the current page number of form.


     setcurrentfield() sets the current field of form to field.
     currentfield()  returns  a  pointer to the current field of
     form.


     fieldindex() returns the index in the field  pointer  array
     of field.

RETURN VALUES
     formpage() returns -1 on error.


     currentfield() returns NUL on error.


     fieldindex() returns -1 on error.


     setformpage() and setcurrentfield() return  one  of  the
     following:

     EOK                The function returned successfully.





SunOS 5.11          Last change: 31 Dec 1996                    1






Curses Library Functions                       formpage(3CURSES)



     ESYSTEMEROR      System error.


     EBADARGUMENT      An argument is incorrect.


     EBADSTATE         The routine was called from an      ini-
                         tialization or termination function.


     EINVALIDFIELD     The field contents are invalid.


     EREQUESTDENIED    The form driver request failed


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     Unsafe                      
    


SEE ALSO
     curses(3CURSES), forms(3CURSES), attributes(5)

NOTES
     The  header    automatically  includes  the  headers
      and .




















SunOS 5.11          Last change: 31 Dec 1996                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™