Method: Item for HeaderItems
- Updated2024-09-12
- 1 minute(s) read
DIAdem VIEW > Methods > Method: Item for HeaderItems
Method: Item for HeaderItems
Returns the HeaderItem object associated with a specific name or index in DIAdem VIEW.
Set oHeaderItem = Object.Item(NameOrIndex)
| Object | HeaderItems Object with this method |
| NameOrIndex | Variant Specifies the name or the index of the specific table heading. |
| oHeaderItem | HeaderItem 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 channel property of a table. The second line of the example is the simplified form of the first line. The DisplayObj must be a ChannelTable type:
| VBScript | Python |
Call MsgBoxDisp("Name of first HeaderItem: " & View.ActiveSheet.ActiveArea.DisplayObj.HeaderItems.Item(1).Name) Call MsgBoxDisp("Name of first HeaderItem: " & View.ActiveSheet.ActiveArea.DisplayObj.HeaderItems(1).Name)