DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


RightString

Declaration: RightString (Instring: string; Width: byte): string;
The function RightString aligns the string Instring within a field of given width (parameter Width ) at the right end. The parameter Width may take values between 1 and 255. If Width is smaller than the length of the string Instring the first Width characters of the input string are returned.

Example: The statement astr := RightString ('TEST',8); passes the string "    TEST" to the variable astr.