StripCR
Deletes return characters from a string.
Method Signature
StripCR(string=[string])
Arguments
Argument
Type
Required
Description
Default
string
string
true
The string or variable that contains the text.
Examples
Removing carriage returns (cr) from a string
x = "A" & char( 13 ) & "B" & char( 13 );
y = stripcr( x );
writeoutput( "Original: " & x & " Length: #len( x )#<br>" );
writeoutput( "Stripped: " & y & " Length: #len( y )#" );
Additional Examples
str = "I love boxlang" & char( 13 );
res = stripCr( str );
writeDump( res );
writeDump( len( str ) );
writeDump( len( res ) );
Related
Last updated
Was this helpful?