Computer Science Canada how to use locate properly? |
Author: | yingmu [ Fri Mar 04, 2005 8:41 pm ] |
Post subject: | how to use locate properly? |
i'm working on a project and i'm put text on a certain part of the screen, i tried using locate and locatexy but only the first line is on the right spot, the rest start below the first line but starts at the left hand side of the screen... is taht suppose to happen, if not please help me. thanx |
Author: | person [ Fri Mar 04, 2005 9:18 pm ] |
Post subject: | |
ok...this is how locate works locate (x,y) x is the row number y is the column number and wat comes after the locate is put there |
Author: | mwachna [ Fri Mar 04, 2005 9:23 pm ] | ||
Post subject: | |||
when you use locate (row, col) it will only apply to the very next output. after that the output will follow to the next line. so if the first output is located to (row,col) then the next ouput will start at (row +1, 1) Quote: _____________So if you started here: the next line is here then here if you want this: Quote: Text here Then text here All lined up! you need to have this code:
|