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....



RightString


Unit:SDL_stringl
Class:none
Declaration:function 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.


Last Update: 2023-Feb-06