For Programmers: Free Programming Magazines  


Home > Archive > Clipper > March 2005 > Display running clock in clipper app.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Display running clock in clipper app.
Eric Bloemen

2005-03-28, 3:55 pm

Hi,
Is there an easy way to put a (running) clock on each screen in a clipper
application?
The format could be HH:MM:SS in a text format.
Thanks
Eric
Antwerp


Philip Chee

2005-03-28, 3:55 pm

On 28/03/2005 23:36, Eric Bloemen wrote:
> Hi,
> Is there an easy way to put a (running) clock on each screen in a clipper
> application?
> The format could be HH:MM:SS in a text format.
> Thanks
> Eric
> Antwerp


Use the NanForum library function FT_ONTICK()

<http://www.itlnet.net/Programming/P...or/ng1b5f7.html>

// Set up a self-updating on-screen clock

FT_OnTick( "CLOCK", 9 )

procedure Clock

local nRow := Row()
local nCol := Col()

@ 0, 0 say Time()

SetPos( nRow, nCol )

return

Phil

--
Philip Chee <philip@aleytys.pc.my>
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]CURSOR: What you become when your system crashes.
* TagZilla 0.057
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com