xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

RemLeft()

Deletes a specified character from the left side of a string.

Syntax

RemLeft( <cString>, [<xChar>] ) --> cResult

Arguments

<cString>
This is the character string to delete characters from on the left side.
<xChar>
A single character or its numeric ASCII code can be passed. The default value is a space character (Chr(32)).

Return

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().

Info

See also:RangeRem(), RemAll(), RemRight()
Category: CT:String manipulation , Character functions
Source:ct\remove.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// 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

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe