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