CT_RANGEREM

 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()



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.