DIAdem Help

Method: IsKindOf for StringBlock

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

Method: IsKindOf for StringBlock

Checks whether a StringBlock object is a certain type.

bIsKindOf = Object.IsKindOf(Type)

ObjectStringBlock
Object with this method
TypeSpecifies the block type to be checked.
Enumeration with the following selection terms:
0 - eBinaryBlock BinaryBlock type object
1 - eStringBlock StringBlock type object
2 - eFixedWidthBlock FixedWidthBlock type object
3 - eCellBlock CellBlock type object
bIsKindOfBoolean
The value is TRUE if the block is the specified type.

The following example checks the block type and sets the block length according to this block type:

If oBlock.IsKindOf(eBinaryBlock) Then
  oBlock.BlockLength = -1
ElseIf oBlock.IsKindOf(eStringBlock) Then
  oBlock.BlockLength = 20
End If

Log in to get a better experience