DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Event: EventInitialize

Event: EventInitialize

Triggers in user dialog boxes if a control is initialized when a dialog box opens, or if the RunInitialize method is called.

EventInitialize(ByRef This)
ThisObject that triggers this event.
Note  When the event is called, the control is already initialized and has already read the variable value if a variable is involved.
Note  If you want to change the value of the control in this event, always use the control to set the value. This prevents conflicts with the variable link.

The following example assigns during initialization the value x to the entry box:

Sub EditBox_EventInitialize(ByRef This)
  This.Text = "x"
End Sub
Was this information helpful?