DIAdem Help

Method: Item for Columns

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

Method: Item for Columns

Returns the Column object associated with a specific name or index in DIAdem VIEW.

Set oColumn = Object.Item(NameOrIndex)
ObjectColumns
Object with this method
NameOrIndexVariant
Specifies the name or the index of the specific table column.
oColumnColumn
Returned object
Note  You can always omit the Item method because it is the standard element of the collection.

The following example displays a message with the name of the first dimension. The second line of the example is the simplified form of the first line:

VBScriptPython

 

Call MsgBoxDisp("Name of first column: " & View.ActiveSheet.Cursor.Dimensions.Item(1).Name)
Call MsgBoxDisp("Name of first column: " & View.ActiveSheet.Cursor.Dimension(1).Name)