Use the Replace function to remove the unwanted characters from the string.
Replace( , , , )
The string in which replacements are to be made
The String to Replace
The string to replace with
Whether to Perform a case sensitive search
Set the
parameter of the function to "" to remove all instances of
within
. This functionality is useful for removing characters from a string which cannot be displayed and are usually represented as a square (). Carriage-Return and Line-Feed characters are two characters which cannot be displayed.
The following example shows how to remove a Carriage-Return and Line-Feed characters from a string.
@NewString@ = Replace("This is the end of the line.", ascCR & ascLF, "",0)
Returns "This is the end of the line." to @NewString@