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