Collection: 2DTableColumns
- 更新日2024-09-12
- 3分で読める
(2DTable | Collections) > Collection: 2DTableColumns
Collection: 2DTableColumns
Collection of all 2DTableColumn objects in DIAdem REPORT. Use the 2DTableColumns collection to access a single column in a 2D table in DIAdem REPORT.
The following example displays the types of all columns in all 2D tables:
| VBScript | Python |
Dim oMyReportObj, oMyReportObjects, oMySubObjects, oMySubObj, sOutput sOutput = "" Set oMyReportObjects = Report.ActiveSheet.Objects For Each oMyReportObj in oMyReportObjects If oMyReportObj.ObjectType = eReportObject2DTable Then Set oMySubObjects = oMyReportObj.Columns For Each oMySubObj in oMySubObjects sOutput = sOutput & "Column type: " & oMySubObj.Type & vbCrLf Next End If Next Call MsgBoxDisp(sOutput)