Post Reply 
New to programming...help !
05-19-2015, 03:22 AM (This post was last modified: 05-19-2015 03:25 AM by Didier Lachieze.)
Post: #3
RE: New to programming...help !
(05-18-2015 10:39 PM)Digitaldreams Wrote:  Tried to print ticks divided by 1000 yet get a line of zero's ?. What is wrong with the below ?. Also what is the command to print at a particular location on the screen ?.

You got a line of zero's because you used "TIC=" instead of "TIC:=".
PRINT is printing to the terminal with each PRINT being on a different line, so if you want to print to a particular location on the screen you should use TEXTOUT_P instead of PRINT:

Code:
EXPORT TEST()
BEGIN
  LOCAL TIC;
  RECT();

  REPEAT 
    TIC:=TICKS()/1000;
    TEXTOUT_P(STRING(TIC),0,0,0,0,100,#FFFFFF);
  UNTIL GETKEY>-1;

END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: New to programming...help ! - Didier Lachieze - 05-19-2015 03:22 AM



User(s) browsing this thread: 1 Guest(s)