form_new_page - Linux
Overview
form_new_page initializes a new page at the beginning of a form’s buffer.
Syntax
form_new_page(PFORM *form) -> int
Options/Flags
None.
Examples
void my_init_page(void *data, bool connected)
{
/* ... */
form_new_page(&form);
/* ... */
}
Common Issues
- Ensure that the form is properly initialized before using this command.
- If the
form
parameter is NULL, the function will return -1.
Integration
form_new_page can be used in conjunction with other form library functions to create and manage forms. For example, it can be used to initialize a form for multiple pages, each with its own set of fields and controls.
Related Commands
- form_new: Initialize a new form.
- form_add_page: Add a new page to a form.