[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
RANGEREM()
Deletes characters that are within a specified ASCII code range
------------------------------------------------------------------------------
Syntax
RANGEREM(<cCharacter1>,<cCharacter2>,<cString>)
--> cResultString
Arguments
<cCharacter1> and <cCharacter2> Designate the first and the
last character of the character range.
<cString> Designates the character string that is edited.
Returns
The function returns the modified character string.
Description
RANGEREM() allows you to delete all characters that are in a particular
ASCII range. For example, you could delete all control characters in a
character string.
The designated range can run "back to front", meaning <cCharacter2> can
have a lower value than <cCharacter1>. In such a case the range extends
from the larger value to 255 and also from 0 to the smaller value.
Note
. Since the length of the character string is changed, passing
by reference will not work here as it does with RANGEREPL().
Examples
. Delete all control characters:
cString := RANGEREM(0, 31, cString)
. Delete all characters that are not upper case, alpha
characters:
cString := RANGEREM(91, 64, cString)
See Also:
RANGEREPL()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson