Preparing the Form for Display

fm_up() initializes a form by preparing the array of form items and allocating memory for field and data conversion buffers. mn_up() prepares the array of form items. fm_ready() does all the initialization done by fm_up() or mn_up(). fm_ready() does not display the form; it builds the necessary arrays of form items and allocates any memory needed for the field edit and data conversion buffers. fm_ready() works on both data forms and menus.

The call for fm_ready() is as follows:

int fm_ready(fmp)

FORMPTR dfmp;    /* Data form or menu to initialize            */

Calling fm_ready() forces the form to be initialized; this, in turn, allows you to call other form functions, such as fm_upd() and sr_upd(), which can only be called for forms that are initialized.


Home Contents Previous Next