home *** CD-ROM | disk | FTP | other *** search
- unit LPaU;
-
- interface
- function LPad( X: string; Lngth: integer): string;
-
- implementation
- function LPad;
- var Temp: string;
- I: integer;
- begin
- if length(X) < Lngth then
- begin
- Temp := X;
- while length(Temp) < Lngth do Temp := Temp + ' ';
- end
- else
- Temp := copy(X,1,Lngth);
- LPad := copy(Temp,1,Lngth);
- end;
-
- end.
-