stripCR

Deletes return characters from a string.

stripCR(String) → returns String

Argument Reference for the stripCR function

String

Required: Yes
A string or a variable that contains one

Examples sample code invoking the stripCR function


Removing carriage returns (cr) from a string

x = 'A' & chr(13) & 'B' & chr(13); 
 y = stripcr( x ); 
 writeoutput( 'Original: ' & x & ' Length: #len(x)#<br>' ); 
 writeoutput( 'Stripped: ' & y & ' Length: #len(y)#' );

Fork me on GitHub