Property: Position for BinaryBlock
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: Position for BinaryBlock
Property: Position for BinaryBlock
Specifies the position of the file pointer in a BinaryBlock.
Object.Position
| Object | BinaryBlock Object with this property |
| Object.Position | LongInteger with read and write access |
The following example reads channel values from a binary file. Because the file pointer is repositioned in the BinaryBlock, the first 25 values (200 / 2 channels / 4 bytes) in this file are ignored.
Dim oBlock : Set oBlock = File.GetBinaryBlock() oBlock.Position = 200 Dim oChn1 : Set oChn1 = oBlock.Channels.Add("FirstChannel", eI32) Dim oChn2 : Set oChn2 = oBlock.Channels.Add("SecondChannel", eI32) Dim oMyGrp: Set oMyGrp= Root.ChannelGroups.Add("MyChannelGroup") Call oMyGrp.Channels.AddDirectAccessChannel(oChn1) Call oMyGrp.Channels.AddDirectAccessChannel(oChn2)