Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Is it possible?? get
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
imsry




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
ecookman




PostPosted: 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.
imsry




PostPosted: Sun Dec 13, 2009 6:25 pm   Post subject: RE:Is it possible?? get

Sweet Thanks : D
ecookman




PostPosted: 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
Zren




PostPosted: 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.
ecookman




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: