Examples: AfterOpen event

In this example, the AfterOpen event procedure for the Sales Territory Maintenance window marks two check box controls when the window opens, overriding the default values that the accounting system sets in its open event:

Private Sub Window_AfterOpen()
	'Set both check boxes when the window opens
	MaintainHistory = 1
	MaintainHistory1 = 1
End Sub

Documentation Feedback