REMALL()
Remove certain characters at the left and right of a string
Syntax
REMALL( <cString>, [<cSearch|nSearch>] ) -> cString
Arguments
<cString> Designates the string that is processed.
<cSearch|nSearch> Designates the character that is removed from the beginning and end of <cString>. The default value is a space, CHR(32).
Returns
REMALL() returns the modified <cString>.
Description
REMALL() functions exactly like Harbour’s ALLTRIM(), with one exception. While this Harbour function can only remove spaces, REMALL() can remove any character you choose. The character that is removed can be specified with the <cSearch|nSearch> parameter.
Note
. When the <cSearch|nSearch> parameter is not specified, spaces are removed.
Examples
. Remove the spaces: ? REMALL(" 1 2 3 ") // "1 2 3" . Remove the character "0": ? REMALL("007007 ", "0") // "7007 "
Compliance
REMALL() is compatible with CT3’s REMALL().
Platforms
All
Files
Source is remove.c, library is libct.
Seealso
REMLEFT(), REMRIGHT()
Pingback: Harbour All Functions – R | Viva Clipper !
Pingback: Harbour String Functions | Viva Clipper !