×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• 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.

# gotoxy

## gotoxy

(OP)
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.

ÿ

uses
crt;

begin
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)
end.

### 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.

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:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!