C
crjunk
I have the following code in my web page.
Dim tmpReplace As String
'Giving tmpReplace the value from the textbox on the
webform.
tmpReplace = txtComments.Text.Trim
'Prevents report from crashing when a single quote is in
string
tmpReplace = tmpReplace.Replace("'", "''")
'Replace carriage return with the appropriate CharCodes.
tmpReplace = tmpReplace.Replace("\n", "chr(13) + chr(10)")
I want to display the following text on my report: chr(13) + chr(10)
Instead what is happening is that .Net is executing the chr function
and creating a carriage return. What do I need to do to prevent the
chr function from being launched?
Dim tmpReplace As String
'Giving tmpReplace the value from the textbox on the
webform.
tmpReplace = txtComments.Text.Trim
'Prevents report from crashing when a single quote is in
string
tmpReplace = tmpReplace.Replace("'", "''")
'Replace carriage return with the appropriate CharCodes.
tmpReplace = tmpReplace.Replace("\n", "chr(13) + chr(10)")
I want to display the following text on my report: chr(13) + chr(10)
Instead what is happening is that .Net is executing the chr function
and creating a carriage return. What do I need to do to prevent the
chr function from being launched?