Method

Readable.ReadError


Warning

This item was deprecated in version 2019r2. Please use Exception Handling as a replacement.

Description

Returns True if an error of any type occurred.

Sample code

This If statement checks for an error after attempting to read from the BinaryStream and displays the error code if ReadError returns True.

Dim readStream As BinaryStream = BinaryStream.Open(readFile, False)
readStream.LittleEndian = True
.
.
If ReadStream.ReadError Then
  MsgBox(Str(readStream.LastErrorCode))
End If

Compatibility

All project types on all supported operating systems.