DIAdem Help

Method: SetActiveCell for XTable

  • Updated2024-09-12
  • 2 minute(s) read

Method: SetActiveCell for XTable

Positions the enabled cell of an extended table in user dialog boxes.

Object.SetActiveCell(Row, Column)
ObjectXTable
Object with this method
RowLongInteger
Specifies the current row.
ColumnLongInteger
Specifies the current column.
Note  The properties ActiveCellCol and ActiveCellRow receive the column index or the row index of the enabled cell.

The following example moves the enabled cell in the extended table XTable1 by one column and one row:

Call XTable1.SetActiveCell(XTable1.ActiveCellRow+1, XTable1.ActiveCellCol+1)

The following example sets the first table entry as the enabled cell when the extended table XTable1 is initialized:

Sub XTable1_EventInitialize(ByRef This)
  If This.ActiveCellRow <=0 Then
    Call This.SetActiveCell(1,1)
  End If 
End Sub