Computer Science Canada

Is it possible?? get

Author:  imsry [ Sun Dec 13, 2009 6:05 pm ]
Post subject:  Is it possible?? get

What is it you are trying to achieve?

Is it possible to move the get somewhere else other than the top left corner?

What is the problem you are having?
i need a code that can move get to the middle. if its possible.
would it be location(??,??)


Please specify what version of Turing you are using
4.1

Author:  ecookman [ Sun Dec 13, 2009 6:09 pm ]
Post subject:  RE:Is it possible?? get

im sorry, but you are rather unspecific. do you have something like this...

code:

var a : int
get a
put a


and you are wondering how to move the cursor or where text is on the screen?


If so, locate(X,Y) will do ya.

the x coordinate is the number of spaces from the left and the y is the lines (returns). It does not work by pixels.

Author:  imsry [ Sun Dec 13, 2009 6:25 pm ]
Post subject:  RE:Is it possible?? get

Sweet Thanks : D

Author:  ecookman [ Sun Dec 13, 2009 6:26 pm ]
Post subject:  Re: RE:Is it possible?? get

imsry @ Sun Dec 13, 2009 6:25 pm wrote:
Sweet Thanks : D

no problem, just next time please try to be more descriptive. Smile

Author:  Zren [ Sun Dec 13, 2009 6:29 pm ]
Post subject:  RE:Is it possible?? get

locatexy(x,y) does though.

For the procedure ecookman told you though. In order to start the text in the middle, you can use:

maxcol div 2 and maxrow div 2 to get the middle column and row.

Author:  ecookman [ Sun Dec 13, 2009 6:30 pm ]
Post subject:  Re: RE:Is it possible?? get

Zren @ Sun Dec 13, 2009 6:29 pm wrote:
locatexy(x,y) does though.

For the procedure ecookman told you though. In order to start the text in the middle, you can use:

maxcol div 2 and maxrow div 2 to get the middle column and row.


aah thanks for that zren I forgot what function I had to div to get tin in the middle lol maxx and maxy does not work XD

merci buckets.


: