| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Deletes a specified character from both sides of a string.
RemAll( <cString>, [<xChar>] ) --> cResult
The function removes <xChar> at the beginning and the end of <cString> and returns the modified string. If no character is specified for <xChar> the result is the same as AllTrim().
| See also: | RangeRem(), RemLeft(), RemRight() |
| Category: | CT:String manipulation , Character functions |
| Source: | ct\remove.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example displays results of RemAll()
PROCEDURE Main
LOCAL cStr1 := " xHarbour "
LOCAL cStr2 := "00012345,000"
? ">"+RemAll( cStr1 )+"<" // result: >xHarbour<
? ">"+RemAll( cStr2, "0" )+"<" // result: >12345,<
RETURN
http://www.xHarbour.com