I am trying to check if a line break exists in a string. I have intentionally included a line break in the string to check if it returns an error. However, it does not return an error despite having a line break in the string.
A sample of the string:
<Project_Title> Proposed
Envelope Control </Project_Title>
The code for find the line breaks:
if instr(1,trim(strProjDetails),"</Project_Title>",vbtextcompare) then
if instr(1,trim(strProjDetails), vbCrLf) > 0 Then
Response.write "sam"
call logClass.setLogs(userid, menu, action, "Error! Line break exists in XML File.", f)
Response.Write("Please remove the line break from the XML file.")
Response.end
End if
End if