xHarbour Reference Documentation > Function Reference |
Deletes character(s) within a specified range of characters.
RangeRem( <xRangeStart>, ; <xRangeEnd> , ; <cString> ) --> cResult
The function removes all characters within the specified range and returns the modified string.
See also: | PosRange(), RangeRepl() |
Category: | CT:String manipulation , Character functions |
Source: | ct\range.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example demonstrates results of RangeRem() PROCEDURE Main LOCAL cString := "The xHarbour Compiler" // remove lower case characters from "o" to "z" ? RangeRem( "o", "z", cString ) // result: The Hab Cmile // remove upper case characters from "A" to "Z" ? RangeRem( "A", "Z", cString ) // result: he xarbour ompiler RETURN
http://www.xHarbour.com