Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here



Can someone explain how gotoxy works.  I'm still confuse with x and the y input.  I'm using an array [1..3,1..5]
I enter 5 things for 3 different people.  I still can't figure out how to write them properly to make it neat.
I just need an explanation of how gotoxyworks since the index doesnt help much.

RE: gotoxy

Declaration: (Crt unit)

procedure Gotoxy(X, Y: Integer);

Use Gotoxy procedure to move to (X,Y) coordinates in text mode.

Your monitor has (usually in text mode) 80 columns x 25 lines. Each character is printed in one of the 80x25=2000
character-thesis. The left-up corner is the coordinate pair (1,1) and the bottom right is (80, 25) cause X is the columns counter.

(view comments):



  ClrScr; {screen clears and cursor goes at (1,1)}
  Write('A'); {writes A at (1,1)}
  Gotoxy(20, 15); {goes at columns 20 and line 15}
  Write('A'); Writes A at (20,15)

RE: gotoxy

Better use the tabulation symbol (#8 in ASCII if I' not mistaken) it arranges words into columns automatically

Zum Beispiel: (ÝÐßàØÜÕà, âãßÞÙ âë ïÝÚØ) (for example)
for i:=1 to 3 do
    writeln("N Surname",#8,"1st thing",#8, and so on);

RE: gotoxy

Yes, the tab key is ascii 8...

what is...
Zum Beispiel: (ÝÐßàØÜÕà, âãßÞÙ âë ïÝÚØ)

(just curious)

Sometimes... the BASIC things in life are the best...

or at least the most fun
-Josh Stribling

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close