DIAdem Help

Property: Column for TextStream

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

Property: Column for TextStream

Specifies the current column number of the file pointer in a text stream file. After the file is open, the property has the value 1.

Object.Column
ObjectTextStream
Object with this property
Object.ColumnLongInteger with read access

The following example specifies the length of the first line of a file:

Function GetFileColumn(sFile)
  Const ForReading = 1
  Dim fso, oMyFile, sOutput
  Set fso = CreateObject("Scripting.FileSystemObject")
  Set oMyFile = fso.OpenTextFile(sFile, ForReading, False)
  Do While oMyFile.AtEndOfLine <> True
    sOutput = oMyFile.Read(1)
  Loop
  GetFileColumn = oMyFile.Column
  oMyFile.Close
End Function

Log in to get a better experience