String

Hi all,

May i know how to fill in a string[20] with spaces after a undetermine characters.

e.g name := 'Paradigm';

compiler gave name[20] = Paradigm;
i want name[20] = Paradigm ;
<--space--->

Thanks to all who help.

Comments

  • [code]
    var
    name: string[20];
    begin
    name := 'Paradigm';
    name := name + StringOfChar(' ', 20 - Length(name))
    end;
    [/code]

    hth, pritaeas

    : May i know how to fill in a string[20] with spaces after a
    : undetermine characters.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion