Property: Position for FixedWidthBlock
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: Position for FixedWidthBlock
Property: Position for FixedWidthBlock
Specifies the position of the file pointer in a FixedWidthBlock.
Object.Position
Object | FixedWidthBlock Object with this property |
Object.Position | LongInteger with read and write access |
The following example reads channel values from a text file. If you position the file pointer in the FixedWidthBlock, the first 25 characters of this file are not included.
Dim oBlock : Set oBlock = File.GetFixedWidthBlock() oBlock.Position = 25 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)