Search DaTutorials:  
HOME
VB Script Tutorials
Introduction
Reference
Tutorials

Column Property

Read-only property that returns the column number of the current character position in a TextStream file.

object.Column

The object is always the name of a TextStream object.

Remarks

After a newline character has been written, but before any other character is written, Column is equal to 1.

The following example illustrates use of the Column property:

Function GetColumn
   Const ForReading = 1, ForWriting = 2
   Dim fso, f, m
   Set fso = CreateObject("Scripting.FileSystemObject")
   Set f = fso.OpenTextFile("c:\testfile.txt", ForWriting, True)
   f.Write "Hello world!" 
   f.Close
   Set f = fso.OpenTextFile("c:\testfile.txt", ForReading)
   m =   f.ReadLine
   GetColumn = f.Column
End Function

See Also

AtEndOfLine Property | AtEndOfStream Property | Line Property

Applies To: TextStream Object


     Loans | Bankruptcy | Credit Cards | Free Advertising | The eBay Song
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp