Examples: Required property


The following example sets the Required property for the Phone 1 field in the Customer Maintenance window:

Private Sub UserDefined1_AfterUserChanged()
	If UserDefined1 = "RETAIL" Then
		Phone1.Required = True
	Elseif UserDefined1 = "WHOLESALE" Then
		Phone1.Required = False
	End If
End Sub


Documentation Feedback