Post Reply 
New to programming...help !
05-19-2015, 05:58 AM
Post: #4
RE: New to programming...help !
(05-19-2015 02:46 AM)Eddie W. Shore Wrote:  
(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 ?.


EXPORT TEST()
BEGIN
LOCAL TIC;

PRINT();

REPEAT
TIC=TICKS();
TIC=TIC/1000;
PRINT(TIC);
UNTIL GETKEY >-1;
END;

I'm not sure why TIC=TICKS() produces a zero result. However, the following will get what I think you want:

EXPORT TEST()
BEGIN
PRINT();

REPEAT
PRINT(TICKS/1000);
UNTIL GETKEY >-1;
END;


Eddie

Thanks Eddie...believe it or not that was my first attempt and it didn't work, now it does !?. Maybe the recent firmware update did the trick....

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


Messages In This Thread
RE: New to programming...help ! - Digitaldreams - 05-19-2015 05:58 AM



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