LeftJust

www.kxcad.net Home > Electronic Index > Altium(Protel) Index


Your Ad Here

Declaration

Function  LeftJust                  (Const S : TDynamicString; Width : Integer) : TDynamicString;

Description

The LeftJust function left justifies a string by padding the string with (Width - Length of String) white spaces to the right of this string.

Example

S := LeftJust('smith',9) + '.';

//s := ‘smith    .’ (four empty spaces between the word ‘smith’ and the fullstop ’.’)

See also

String Manipulation Routines