Before your program can begin working with a form, you must load it into memory. CalculateAge does this by defining a loadForm function to handle these tasks.
Call UFLReadForm within the implementation of your loadForm function to read in the form, calculateAge.xfd.
r_short loadForm(formNodeP *form)
/* Call UFLReadForm. The parameters are:
1. calculateAge.xfd : indicates the file on the local drive to read the
2. 0 : because we do not need the #include lines to be resolved.
The UFLReadForm will return a pointer to the root node of the new form
structure once it is loaded into memory. */
if ((*form = UFLReadForm("calculateAge.xfd", 0)) == NULL)
reportError("Could not load form.\n", 0);
Parent topic: Developing an application in C
Previous topic: Initializing the Form Library
Next topic: Retrieving A Value from a Form