Last updated 21 days ago
Was this helpful?
Deletes return characters from a string.
str = "I love boxlang" & char( 13 ); res = stripCr( str ); writeDump( res ); writeDump( len( str ) ); writeDump( len( res ) );
StripCR(string=[string])
string
true
The string or variable that contains the text.
x = "A" & char( 13 ) & "B" & char( 13 ); y = stripcr( x ); writeoutput( "Original: " & x & " Length: #len( x )#<br>" ); writeoutput( "Stripped: " & y & " Length: #len( y )#" );