Tabs In Pascal

Hi,

Can someone tell me how to put tabs in pascal or align were the text is on the screen.

Thanks


Comments

  • : Hi,
    :
    : Can someone tell me how to put tabs in pascal or align were the text is on the screen.
    :
    : Thanks
    :
    program Align;

    const
    CMesaj = 'Merhaba dunya!';
    CMesajBoy = Length(CMesaj);

    begin
    { Right align }
    WriteLn(CMesaj:(CMesajBoy * 2), ' Hello world!');
    { Left align }
    WriteLn(CMesaj, '':(CMesajBoy * 2), ' Hello world!');
    end.



  • In a text mode you can use combination:

    GotoXY(x,y);
    Write('Hello World');

    In a graphical mode you can use single command
    (OutTextXY).


    Iby


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