RightAlignStr Function
Returns a string of Length N with blank spaces added to the Beginning of the string if S is too short, or returning the N left-most characters of S if S is too long.

Unit
QESBPCSConvert

Declaration
Function RightAlignStr(const S: string; const N: LongWord): string;

Description
Also See: PadRightStr, LeftAlignStr

Parameters
the String to be Right Aligned.
the length of the resultant string.

Category
Extra String Handling Routines

Implementation

function RightAlignStr (const S: string; const N: LongWord): string;
begin
     Result := PadLeftStr (LeftStr (S, N), N);
End;


HTML generated by Time2HELP
http://www.time2help.com