ObjectDCL Banner

OnUpdate Event

Description

Indicates the control is about to display altered text.

Parameters

sText
String describing the text that will be displayed.

AutoLISP Syntax

Each control that throws this event has its handler that takes this generic form:

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnUpdate 
                 (sText [as String] /)
     
)

Applies For

ComboBox, ImageCombo, TextBox.

Example

CopyCode imageCopy Code
; React to the text change
(princ c:MyForm_MyControl_OnUpdate
                 (sText /)
     (princ "OnUpdate(")
     (princ sText)
     (princ ")\n")
)