Nov 27, 2001 #1 Grazer Programmer Sep 6, 2001 28 0 0 GB Does anyone know how to add a carriage return to a string in an asp page using vbscript?? thanks for any answers.
Does anyone know how to add a carriage return to a string in an asp page using vbscript?? thanks for any answers.
Nov 27, 2001 #2 jasonsalas IS-IT--Management Jun 20, 2001 480 0 0 GU You can do this easily in VBSCript using "vbcrlf". This stands for "Visual Basic Carriage Return Line Feed": I use this a lot when writing scripts that actually write out other scripts. For example, using vbcrlf in the middle of a string as such: <% Headlines.Write("<!--" & vbcrlf) Headlines.Write("document.writeln('Hello, World!');"Headlines.Write(vbcrlf) Headlines.Write("//-->" Headlines.Close %> ...prints out the following output: <!-- Hello world! //--> Hope this helps, Jason Upvote 0 Downvote
You can do this easily in VBSCript using "vbcrlf". This stands for "Visual Basic Carriage Return Line Feed": I use this a lot when writing scripts that actually write out other scripts. For example, using vbcrlf in the middle of a string as such: <% Headlines.Write("<!--" & vbcrlf) Headlines.Write("document.writeln('Hello, World!');"Headlines.Write(vbcrlf) Headlines.Write("//-->" Headlines.Close %> ...prints out the following output: <!-- Hello world! //--> Hope this helps, Jason
Nov 27, 2001 #3 jasonsalas IS-IT--Management Jun 20, 2001 480 0 0 GU Sorry...that example should have read: <% Response.Write("<!--" & vbcrlf) Response.Write("document.writeln('Hello, World!');"Response.Write(vbcrlf) Response.Write("//-->" Response.Close %> Upvote 0 Downvote
Sorry...that example should have read: <% Response.Write("<!--" & vbcrlf) Response.Write("document.writeln('Hello, World!');"Response.Write(vbcrlf) Response.Write("//-->" Response.Close %>