faqts : Computers : Programming : Languages : Asp : ASP/VBScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

539 of 664 people (81%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

I am lost as to what the "VbCrlf" thing is! Could someone explain it to me, I can't seem to find any info on it.

Mar 2nd, 2002 15:09
William, Vince Kavanagh, Kaustav Acharya,


vbCRLF (Visual Basic Carriage Return Line Feed) is the VB shortcut for; 
Chr(13) & Chr(10), it is very useful for formatting output to email 
scripts.
i.e
"First Name : " & Session("Fname") & vbCRLF &
"Last Name  : " & Session("Lname") & vbCRLF
-------------------------------------------------------
If you're coding something in ASP, such as:
<%
Response.Write("My name is William. ") & vbCRLF
Response.Write("I am 22 years old, and ") & vbCRLF & vbCRLF & vbCRLF
Response.Write("I love ASP programming!")
%>
... and View Source from within IE or Netscape, you'll see exactly what 
these do! Play with "& vbcrlf" as much as you like, adding it as many 
times as you feel necessary, to get the jist of how it works.
Good luck!



© 1999-2004 Synop Pty Ltd