Method: IsKindOf for AbstractChannelFormatter
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: IsKindOf for AbstractChannelFormatter
Method: IsKindOf for AbstractChannelFormatter
Checks whether the AbstractChannelFormatter object is a certain type.
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.
bIsKindOf = Object.IsKindOf(Type)
Object | AbstractChannelFormatter Object with this method | ||||||||
Type | Specifies the block type to be checked. Enumeration with the following selection terms:
|
||||||||
bIsKindOf | Boolean The value is TRUE if the channel is part of the specified block type. |
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