DIAdem Help

Method: GetNextBinaryValue for File

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

Method: GetNextBinaryValue for File

Reads a value at the current file position and moves the file pointer according to the data type of the value.

vGetNextBinaryValue = Object.GetNextBinaryValue(DataType)

ObjectFile
Object with this method
DataType Specifies the date type of the value to be read out.
Enumeration with the following selection terms:
eI8 8-bit integer values
2 eI16 16-bit integer values
3 eI32 32-bit integer values
4 eI64 64-bit integer values
5 eByte Byte
6 eU16 16-bit unsigned integer
7 eU32 32-bit unsigned integer
8 eU64 64-bit unsigned integer
9 eR32 32-bit real values
10 eR64 64-bit real values
vGetNextBinaryValueVariant
Receives the value that has been read out.
When the method reaches the end of the file, the return value is a VT_EMPTY type variant.
Note  If you specify the data types eU16 or eU32, the return value Value can cause problems in VBS.

The following example reads a 32-bit integer value and a 32-bit unsigned integer value from the file and interprets these two values as Root properties:

Dim MyAttr
MyAttr = File.GetNextBinaryValue(eI32)
Call Root.Properties.Add("Attr1", MyAttr)
MyAttr = File.GetNextBinaryValue(eU32)
Call Root.Properties.Add("Attr2", MyAttr)

Log in to get a better experience