xHarbour Reference Documentation > Function Reference |
Deletes a specified character from the right side of a string.
RemRight( <cString>, [<xChar>] ) --> cResult
The function removes <xChar> on the right side of <cString> and returns the modified string. If no character is specified for <xChar> the result is the same as RTrim().
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 RemRight() PROCEDURE Main LOCAL cStr1 := " xHarbour " LOCAL cStr2 := "00012345,000" ? ">"+RemRight( cStr1 )+"<" // result: > xHarbour< ? ">"+RemRight( cStr2, "0" )+"<" // result: >00012345,< RETURN
http://www.xHarbour.com