Showing The Time Dynamically (Clock)

Click to select the code.  Use Control-C to copy it to your clipboard. Help


To show the current system time dynamically (that is, a clock), use a Timer and a Label.  The Label Caption should be set empty, initially; and set dimensions manually, with Autosize off.  Set the Timer's Interval to 1000 milliseconds, so it will increment once per second.  Each time the OnTimer event reaches its Interval, it will get the current time with the native Now function, and then rewrite the Label Caption with the current time.

FLASH! BANG! The action just never ends. You want your site to look great? You want it to stand out from the crowd? You want it to be free of smelly foot odor? Then you MUST MUST MUST have... Go here: FlashBanger's!


Copyright 2001 - 2012 by and OECCorp.
The 2012 Evolution™ is an OEC InterNET Group site.SupportNotices