The usage of the VBS property Column
This article introduces the relevant knowledge of "the use of VBS attribute Column". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
A read-only property that returns the column number of the current character position in the TextStream file.
Object.Column
Object is usually the name of the TextStream object.
Description
Column equals 1 after writing new line characters, but before writing other characters.
The following example illustrates how to use 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 to the world!" F.Close Set f = fso.OpenTextFile ("c:\ testfile.txt", ForReading) m = f.ReadLine GetColumn = f.ColumnEnd Function "usage of the VBS attribute Column" ends here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!