Export (File menu)
Often it is useful to have a PL/B source file that generates a form. Users can use the source file as a learning aid or to customize the code beyond the capabilities of the Form Designer.
To export the code, first select the form by clicking within the boundaries of the form where no other objects exist. After selecting the form, simply click Export and then PLS in the submenu. A standard Windows file creation dialog will appear. The user may then navigate to the desired output directory and specify the code file name. If a file of that name already exists, the user is warned that the file will be replaced. Care should be taken to not overwrite valuable source code.
Once a file name has been specified, PL/B source statements are written to the text file. This source file, when compiled, produces a fully functional program. All objects with their appropriate properties and event routines are created.
The Export function also provides for the output of the form in XML format. This file could then be loaded using the Window object's LoadPLFFile method.
![]() |