Examples: AfterUserChanged event


The following example uses the AfterUserChanged event to check the value of the Customer ID field in the Invoice Entry window. It disables the Trade Discount field:

Private Sub CustomerID_AfterUserChanged()
	If CustomerID = "ADVANCED0002" Then
		'Don't offer a trade discount
		TradeDiscount.Enabled = False
	End If
End Sub


Documentation Feedback