LeftStr Function
Returns the substring consisting of the first N characters of S.

Unit
QESBPCSConvert

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

Description
Also See: LeftAlignStr, RightStr

Parameters
the String from which the left substring is to be taken.
the length of the resultant substring. If Length (S) < N then S is returned.

Category
Extra String Handling Routines

Implementation

function LeftStr (const S: string; const N: LongWord): string;
begin
     Result := Copy (S, 1, N); // Return the first N Characters
End;


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