• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 519
  • Last Modified:

VBScript Linebreak in a text file?

How do I get VBScript to create a line break in a text file?

my code currently looks like --

<%
Dim MapFile
Dim MapFile_cmd
Dim MapFile_numRows

Set MapFile_cmd = Server.CreateObject ("ADODB.Command")
MapFile_cmd.ActiveConnection = MM_GolfConnection_STRING
MapFile_cmd.CommandText = "SELECT CAST(ID AS nvarchar(8)) +'   '+ Lower(SEOLink) AS MAP FROM dbo.MyPage" 
MapFile_cmd.Prepared = true

Set MapFile = MapFile_cmd.Execute
MapFile_numRows = 0
Response.ContentType = "text/plain"
 
if NOT MapFile.EOF then

dim arrMapFile
arrMapFile = MapFile.GetRows()

End If
MapFile.Close()
Set MapFile = Nothing

dim i 
For i = 0 to ubound(arrMapFile, 2)
response.write"" & (trim(arrMapFile(0,i))) & ""
response.write"VBCR"
next 
%>

Open in new window


Thanks
0
garethtnash
Asked:
garethtnash
1 Solution
 
DerekFGCommented:
response.write("<br>")

Give that a shot.
0
 
netballiCommented:
Just change the line 27

from
27. Response.write "VBCR"
to
27. Response.write vbCRLF
0
 
garethtnashAuthor Commented:
Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now