DIAdem Help

Object: AbstractChannelFormatter

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

Object: AbstractChannelFormatter

The AbstractChannelFormatter object contains information about how the values of a channel are represented in the file.

Depending on whether the channel belongs to a BinaryBlock, StringBlock, FixedWidthBlock, or CellBlock the AbstractChannelFormatter is a BinaryChannelFormatter, StringChannelFormatter, FixedWidthChannelFormatter, or CellChannelFormatter object.

The following example checks to which block type each channel belongs and creates the channel property BlockType:

Dim oMyChn
For Each oMyChn in oBlock.Channels
  If oMyChn.Formatter.IsKindOf(eStringBlock) Then
    Call oMyChn.Properties.Add("BlockType", "StringBlock")
  ElseIf oMyChn.Formatter.IsKindOf(eBinaryBlock) Then
    Call oMyChn.Properties.Add("BlockType", "BinaryBlock")
  ElseIf oMyChn.Formatter.IsKindOf(eFixedWidthBlock) Then
    Call oMyChn.Properties.Add("BlockType", "FixedWidthBlock")
  ElseIf oMyChn.Formatter.IsKindOf(eCellBlock) Then
    Call oMyChn.Properties.Add("BlockType", "CellBlock")
  End If
Next

Methods

IsKindOf