VbCRLF

i observed many asp codes with vbCRLF like:

Response.write "</select></td>" & vbCRLF

what for vbCRLF is used?

View Replies


ADVERTISEMENT

VbCrLf ?

how to use vbCrLf or give me some direction on where to look for some information?

View Replies View Related

Chr(13) And VbCrLf

whats the difference between Chr(13) and vbCrLf
which one to use where?

View Replies View Related

VbCrLf In Jscript

Im still working on some <%@ LANGUAGE=JScript %> code ;).What is the same command as VbCrLf in JScript?I just want my HTML to jump one line down.

View Replies View Related

VbCrLf Not Working

Is there something that I need on my computer in order for vbCrLf to work? Anytime I include that in my ASP code it never creates a line break... it just ignores it. I have to change it to "<br>" Am I doing something wrong?

View Replies View Related

Combine The LEFT And VbCrLF Thingy

I have used thecode which is below to get x characters on to display

<%= LEFT(rsName.Fields.Item("columnname").Value,50)%>

It works fine but when I use this same code to get x characters plus display it using VBCRLF, with the <br> with writing the code :

<%=Replace LEFT
(Recordset1.Fields.Item("Detail").Value,VbCrLf,"<br><br>",50)%>

it gives me error so please can you tell me how can i trim the characaters and at the same time use VBCRLF. why does this above code with LEFT + vbCrLF doesn't work.

View Replies View Related

Vbcrlf At End Of Textarea Comments Leads To Problems

An important thing to mention here is that when this data goes into my database table i'm using the UPDATE function to modify pre-existing records in the database.

The form that contains my textarea also populates the textarea with the current data from the database so when I submit data, when the page refreshes I should see, in the textarea, the data that I just submitted.

Another things worth mentioning is that when I UPDATE this information in the database, the content from the textarea goes through a instances of the replace() function. There is one in particular that I need but is causing problems:

strTextInput = Replace(strTextInput,chr(13) & chr(10),"<br />")

when the data from the textarea contains a line break I want that to become a break tag in the database. This works well EXCEPT for a line break that seems to always exist at the end of the text in the textarea when I submit my form to be processed. This trailing line break exists regardless of any attempts. If I have: Code:

View Replies View Related

A String Has No Line Feeds Or Cariage Retunrs Or Spaces, Need To Insert A VbCrLf

When users fill out my text area field, there is a chance that there
will be no line feeds or cariage returns or spaces and just one really
long word.

THIS CAUSES A MAJOR PROBLEM! What I am trying to do is
force a vbCrLf if a string is long than 80 characters in a row. So if
a string is a total of 500 characters with no line feeds, spaces, or
returns, I want to force a vbCrLf every 80 characters so that is
doesn't overflow my preview text field on the next page.

Any suggestions on how the algorithm would be for this in VBscript
ASP?

View Replies View Related

Display VbCrLf's From Textarea To Textarea

how to dispaly text from a text area on a page as page copy (using the replace function)

How do I display this text inside another textarea, holding formatting? All variations of 'what I thought would work' do not.

I am using the following function:

Function DisplayMemo(theText)
DisplayMemo = ""
on error resume next
DisplayMemo = CStr(theText)
if (len(DisplayMemo) > 0) Then
DisplayMemo = Replace(DisplayMemo, vbCrLf, "<br>", 1, -1, 1)
end if
End Function

calling it like:

<textarea cols=119 name=ownSubmitted rows=7>" & DisplayMemo(getInfo(0)) & "</textarea>

NOTE: getInfo(0) is a variable holding my value. Yes the value is there. It is showing the text I want, however the <br>'s are rendered inside the text area?

View Replies View Related

"vbCrLf"

I'm converting a page of ASP into PHP and I've stumbled onto something I've never come across in ASP. Whoever coded the ASP is trying to format a message into an email message that makes sense to a reader.

$a = "A request form has been filled out and submitted" & vbCrLf
$a = $a & "by " $company & $email & vbCrLf
$a = $a & "on " & date("F d, Y") & " at " & date("H:i:s") & "." & vbCrLf & vbCrLf
$a = $a & "The following:" & vbCrLf & vbCrLf
$a = $a & "Snack Mixes-" & vbCrLf & vbCrLf

This is just a sampling. What is it doing? If it is a specific function what would I use that is similar in PHP? If I know what it does I can find out at least. Is it a line break or something? The code above is partly converted to PHP as you see the form elements aren't request.form. What is the "vbCrLf" part of it?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved