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:

 

  1. Define the form using the PLFORM declaration.

  2. At the point in your program where you want the form to be displayed and become active, use the FORMLOAD instruction.

  3.  

    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.

     



about_designer Attaching Event Code Opening and Saving Forms and PrintPages