The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:function 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.

Last Update: 2020-May-31