Using Forms in Programs
Once you have completed the design of a form and have saved it to disk, you are ready to incorporate it in a PL/B program.
To include the form in a program:
Define the form using the PLFORM declaration.
At the point in your program where you want the form to be displayed and become active, use the FORMLOAD instruction.
A basic program to display a form is:
MAIN PLFORM MYFORM.PLF
.
FORMLOAD MAIN
.
LOOP
EVENTWAIT
REPEAT
Simply substitute your form's disk file name for "MYFORM.PLF" and it is ready to compile and run.
![]() |