home *** CD-ROM | disk | FTP | other *** search
- {function that right justifies an input string
- variable description:
- str : the string that is to be right justified
- fw : the field width in which the string is to be right justified
- temp : a temporary string used by the function
- }
- function Rjust(str : str80;fc : char;fw : integer) : str80;
- var temp : str80;
- begin
- temp[0] := chr(fw - length(str));
- fillchar(temp[1],fw - length(str),fc);
- Rjust := temp + str;
- end;