DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Property: Position for FixedWidthBlock

Property: Position for FixedWidthBlock

Specifies the position of the file pointer in a FixedWidthBlock.

Object.Position
ObjectFixedWidthBlock
Object with this property
Object.PositionLongInteger 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)
In This Section
Was this information helpful?