[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
PadCenter StrngTTT
Purpose Tp expand and center a string with a specific character.
Returns String;
Declaration PadCenter(Str:string; Size:byte; Pad:char):string;
Str is the string to be expanded
Size is the new string length
Pad is the character to expand the string with
Uses StrngTTT.
Example
USES STRNGTTT;
VAR TTT : STRING;
BEGIN
TTT := PADCENTER(' ASTERISKS ',20,'*');
END.
The string TTT is assigned the value "***** Asterisk *****".
See Also:
PadLeft
PadRight
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson