Get the App
SLTechnology News&Howtos  ›  Development  › 

The usage of the VBS property Column

Shulou Source: shulou.com Published: 2022-06-03 19:53:54 11月12日 Update

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!

Tags: Attributes characters content more knowledge practicality achievement next world location hello example name dilemma actual object situation file article case Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Huawei vpn Shulou Information Apple