xHarbour Reference Documentation > Function Reference |
Right justifies characters in a character string.
JustRight( <cString>, [<xChar>] ) --> cResult
The function searches <xChar> at the end of <cString> and moves all <xChar> from the end to the beginning. The modified string is returned.
See also: | Center(), JustLeft() |
Category: | CT:String manipulation , Character functions |
Source: | ct\justify.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example displays results of JustRight() PROCEDURE Main LOCAL cStr1 := "xHarbour " LOCAL cStr2 := "ABCD...." ? ">"+JustRight( cStr1 )+"<" // result: > xHarbour< ? ">"+JustRight( cStr2, "." )+"<" // result: >....ABCD< RETURN
http://www.xHarbour.com