Form class definition
Like any other CLASS definition, the main one in the .WFM file can be further broken down into two parts:
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.
Class methods, if any, follow. This is usually event handler code, but can also contain other methods that pertain to the form and which often are called by the event handlers.
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.