The current form AForm object.
AForm Public Const
The Form variable can be used within a form's procedures or within a form, control, or menu event to obtain the current form object. Using the Form variable is preferred over using the form variable name since the form can be also created or used with other variables. Note also that the form control variable or name is not required when referring to the control's properties.
The Form variable is not required when referring to the form properties or methods within the Form procedures and events but is recommended within the Control or Menu events.
The following example sets the form caption when a button is clicked:
Procedure btnInit.OnClick(): Void public
{
Form.Caption=m_sProgram+" (Running)"
Run m_sProgram
}