TIP: Click on subject to list as thread! ANSI
echo: clipper
to: J ENDERS
from: MARK NEIDORFF
date: 1996-12-14 09:42:00
subject: CLOCKS

JE>      I want to put an on screen clock in the program that i am writing
JE> could someone tell me how to do that?
If you want it on the screen at all times, then you probably should
get a 3rd party library.  In that way, you can install an interrupt
hook and have the clock displayed behind the scenes of clipper.  If
you just want it on a data entry screen, you can add a custom get
reader which instead of sitting on
key := inkey(0)
to wait for user input is in a loop like this:
key := 0
while key == 0
    key := inkey()
    @maxrow(),maxcol()-10 say time()
end
This, of course, is very crude.  You can improve it a lot, but it will
get you started in the right direction.
     >
---
 * RM 1.3 00554 * Mr. Worf, fire at will. >>ZAP!<< Hey! Where'd Riker go?
--- QScan/PCB v1.19b / 01-0136
---------------
* Origin: THE BOSS * Tenafly, NJ * 201-568-7293 * (1:2604/301)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.