LeftStr Function |
Unit
QESBPCSConvert
Declaration
Function LeftStr(const S: string; const N: LongWord): string;
Description
Also See: LeftAlignStr, RightStr
Parameters |
S | the String from which the left substring is to be taken. |
N | the length of the resultant substring. If Length (S) < N then S is returned. |
Category
Extra String Handling RoutinesImplementation
function LeftStr (const S: string; const N: LongWord): string; begin Result := Copy (S, 1, N); // Return the first N Characters End; |
|