DIAdem Help

Object: 2DTableColumn

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

Object: 2DTableColumn

The 2DTableColumn object provides a column for a 2D table in DIAdem REPORT.

The 2DTableColumn object corresponds to one of the following objects:

2DTableColumnChannel (IRepTable2DColumnChannelInt) Channel
2DTableColumnExpression (IRepTable2DColumnExpressionInt) DIAdem expression
2DTableColumnText (IRepTable2DColumnTextInt) Text list
2DTableColumnVariable (IRepTable2DColumnVariableInt) Variables

The following example displays the types of all columns in all 2D tables:

VBScriptPython

 

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)