Article ID: 10112
HOWTO: Use Replace function to remove unwanted characters from a string
HOWTO
Applies To: ITScriptNet V1/V2

Unwanted characters being displayed as .

DETAILS

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@
This article last updated: 1/1/2009 12:00:00 AM
Please help us improve the Knowledge Base by rating this article.
    © 1997-2026 Z-Space Technologies - a BCA Innovations Company - All rights reserved