Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>rangerem()</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson