DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Event: EventValChanged for XTable

Event: EventValChanged for XTable

Triggers in user dialog boxes when a value or a text of a cell in the extended table changes.

Use the EventValChanged event only to refresh interdependent elements in an extended table, for example, to refresh a preview. Use the EventValSet event to save values or texts.

EventValChanged(ByRef This, Row, Col, ByRef Cell)
This Object that triggers this event.
Row Specifies the row number of the cell.
The row 0 contains the column header type Text. The actual data of the extended table start at line 1.
Col Specifies the column number of the cell.
Column 0 contains the type Text for the line text. The actual data of the extended table start in column 1.
Cell Control that is assigned to the cell.
You can use all the properties and methods of the control.
For this parameter you can use CodeCompletion within the event procedure.
Note  Use the dialog box Configure columns to determine the type of the control that is assigned to the column with the number Col. To open this dialog box, select the extended table in the dialog editor and click Columns on the Properties tab. You can assign the following types of controls to a column: Button, CheckBox, ChnComboBox, ChnListBox, ComboBox, EditBox, ListBox and Text. Refer to the the DIAdem Help for information on the properties and methods of these controls. The control properties, which you also can set in the Cell type dialog box of the extended table, are identified accordingly in the DIAdem help.

The following example assigns a text to Text1 if a cell value of the extended table XTable1 changes:

Sub XTable1_EventValChanged(ByRef This, Row, Col, ByRef Cell)
  Text1.Text = "CellChanged (" & Row & "," & Col &"), Objecttype: "& Cell.ObjectType
End Sub 
In This Section
Was this information helpful?