Method: IsKindOf for StringChannelFormatter
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: IsKindOf for StringChannelFormatter
Method: IsKindOf for StringChannelFormatter
Checks whether a StringChannelFormatter object is a certain type.
The StringChannelFormatter object contains information about how the values of a channel are represented in the text file. The channel always belongs to a StringBlock.
bIsKindOf = Object.IsKindOf(Type)
| Object | StringChannelFormatter 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 each channel whether this channel has a StringBlock and creates the channel property DataType:
Dim oMyChn For Each oMyChn in oBlock.Channels If (oMyChn.Formatter.IsKindOf(eStringBlock)) Then Call oMyChn.Properties.Add("DataType", oMyChn.Formatter.DataType) End If Next