w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

ASP Column Property


TextStream Object Reference Complete TextStream Object Reference

The Column property returns the column number of the current character position in an input stream.

Note: This property is 1 after a new line character is written (even before any other character is written).

Syntax

TextStreamObject.Column

Example

<%
dim fs,f,t,x,y
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateTextFile("c:\test.txt")
f.write("Hello World!")
f.close

set t=fs.OpenTextFile("c:\test.txt",1,false)
do while t.AtEndOfStream<>true
  x=t.Read(1)
  y=t.Column-1
loop
t.close
Response.Write("The last character in the text file is: " & x)
Response.Write("<br /> at character position: " & y)
%>

Output:

The last character in the text file is: !
at character position: 12


TextStream Object Reference Complete TextStream Object Reference

DreamTemplate


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Windows Hosting
WEB BUILDING
XML Editor – Free Trial!
FREE Flash Website
FREE Web Templates
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display