Like any other CLASS definition, the main one in the .WFM file can be further broken down into two parts:

  1. The constructor is the code that is run every time a NEW object of that class is instantiated. It creates, or constructs, an object of that class. Class constructors created by the Form designer are divided into four parts:

Assignments to the stock properties of the Form object.

data objects in the form, each with its own WITH block.

All the controls in the form, each with its own WITH block.

Housekeeping code; specifically to assign the rowset of one of the queries in the form to the form’s rowset property as the form’s primary rowset.

How the contents are generated

The contents of the class constructor reflect the work you’ve done in the visual development environment. You can create and edit class methods in the Source editor. Both the Header and General sections are also editable in the Source editor. You have no control over the bootstrap code generated by the Form designer.