Change Event

This event is triggered whenever data within the control has changed. It generally occurs when the user leaves the field after making a modification. When this event is called, the data in the control has already been committed to the underlying loan.

Note: Use the DataCommit event to intercept changes to the loan’s value before they occur.

 

Supported By:

 

Change events are supported by text boxes, dropdown boxes, and dropdown edit boxes.

 

 

EventArgs Properties:

 

None

 

 

 

Example:

 

The following code can be placed in the Change event for a text box. The event code below displays a message to the user in a label control (Label1) if the loan amount exceeds $100,000.

 

 

'Clear the label's contents by default

Label1.Text = " "

 

 

 

If Loan.Fields ("1109") .Value <> " " then

If Loan.Fields("1109").Value > 100000 then

Label1.Text = "This loan qualifies for a discounted rate!"

End If

End If