Method: GetNextBinaryValue for File
- Updated2024-09-12
- 2 minute(s) read
DataPlugin > Methods > Method: GetNextBinaryValue for File
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)
| Object | File Object with this method | ||||||||||||||||||||||||||||||
| DataType | Specifies the date type of the value to be read out. Enumeration with the following selection terms:
|
||||||||||||||||||||||||||||||
| vGetNextBinaryValue | Variant 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)