DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Method: IsKindOf for BinaryBlock

Method: IsKindOf for BinaryBlock

Checks whether a BinaryBlock object is a certain type.

bIsKindOf = Object.IsKindOf(Type)

ObjectBinaryBlock
Object with this method
Type Specifies 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(eFixedWidthBlock) Then
  oBlock.BlockLength = 20
End If
In This Section
Was this information helpful?