Property: Table for 2DTableColumnDrawingContext

DIAdem 2018 Help

Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)

DIAdem 2012 Help
DIAdem 2014 Help
DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help

Specifies the 2D table of the table column DIAdem REPORT is plotting.

Set o2DTable = Object.Table
Object with this property
Returned object
Note  To test the example script, you must first save the script and register it as a user command in the dialog box that opens when you select Settings»Extensions»User Commands.

The following example executes the user command MyOnDrawing2DTableColumn when a column is plotted in a 2D table. The user command changes the format of the column being plotted for the first table on the first worksheet. The user command receives two parameters. The first parameter corresponds to a 2DTableColumnDrawingContext object and provides information about the 2D table and the worksheet into which DIAdem is plotting the curve. The second parameter corresponds to a 2DTableColumn object and provides information about the table column DIAdem is plotting:

Report.Events.OnDrawing2DTableColumn= "MyOnDrawing2DTableColumn"

Sub MyOnDrawing2DTableColumn(Context, Column)
  Dim oMyTable, oMyColumn, sOutput
  Set oMyTable = Context.Table
  Set oMyColumn = Column
  If Context.Sheet.Index = 1 AND oMyTable.Index = 1 then
    Select Case oMyColumn.Type
      Case e2DTableColumnChannel
        oMyColumn.Settings.Format = "d.d"
      Case e2DTableColumnVariable
      Case e2DTableColumnExpression
      Case e2DTableColumnText
    End Select
  End If
End Sub


Not Helpful