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


LeftString

Declaration: LeftString (Instring: string; Width: byte): string;
The function LeftString returns a string of fixed length Width. This string contains the text of the string Instring. The parameter Width may take values between 1 and 255. If Width is smaller than the number of characters of the string Instring only the first Width characters of Instring are used. If Width is larger the remaining characters are filled up with blanks (ASCII 32).

Example: The statement "hstr := LeftString ('TEST',8); " copies the string 'TEST    ' to the variable hstr.