If you are using linked data forms (that is, you have linked two or more data forms together by using MODIFY->Current form->Page links in the Designer), you must read each form individually out of the library. The linking is done automatically for you when the form is processed.
For example, suppose the data forms form1, form2, and form3 have been created in the library des_tut.vvd. None of the forms have user-installed functions or use choice lists.
Before writing code, you must create the data structure for each form.
Shown below are the declarations and code to get the three forms from the library and process them. Similar code is given in the file fm_link.c in the tutorial directory.
|
|
|
|
|
|||
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
||
|
|||
|
|
|
|
|
|
|
|
|
|||
|
|||
|
|
|
|
|
|||
|
|
|
|
|
|||
|
|||
Functions are provided that return the name of the next or previous form, so that you can determine which forms to get from the library more easily. These functions are as follows:
|
These functions return a pointer to a string that can be passed to dl_fmget().