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 AbbrevString (Instring: string; width: integer): string;

The function AbbrevString abbreviates the string Instring if the length of Instring exceeds width characters. The abbreviated string consists of the width-2 first characters of Instring plus two dots, and is returned as function result.

Example: The statement AbbrevString ('This is a difficult situation', 16); returns the string 'This is a diff..'.

Last Update: 2012-Oct-20