REMLEFT()
Remove certain characters at the left of a string
Syntax
REMLEFT( <cString>, [<cSearch|nSearch>] ) -> cString
Arguments
<cString> Designates the string that is processed.
<cSearch|nSearch> Designates the character that is removed from the beginning of the <cString>. The default value is a space, CHR(32).
Returns
REMLEFT() returns the modified <cString>.
Description
REMLEFT() functions exactly like Harbour’s LTRIM(), with one exception. While this Harbour function can only remove spaces, REMLEFT() 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: ? REMLEFT(" 123 ") // "123 " . Remove the character ".": ? REMLEFT("..123..", ".") // "123.."
Compliance
REMLEFT() is compatible with CT3’s REMLEFT().
Platforms
All
Files
Source is remove.c, library is libct.
Seealso
REMALL(), REMRIGHT()
Pingback: Harbour All Functions – R | Viva Clipper !
Pingback: Harbour String Functions | Viva Clipper !