This web site requires Java Script.
You must enable Java Script on
your browser to navigate this site.















Creating a Clock

Creating a clock is very easy with the help of variables that are supported by ModCom. The global variable {systemtime} contains the current time of the system clock and can not only be used to test for specific times of day, but can be used to construct a working clock which can be viewed during run-time.

To do this, simply place a Text Window on the screen and then write a Conditional statement which will continually update the Text Window with the current time. The expression {TextWindow1} <> {systemtime} will evaluate to TRUE at anytime the system clock changes. Then use the "Show Message" function to send the new {systemtime} to the Text Window.

A similar approach can be used to create a date indicator using the {systemdate} variable like this. If {TextWindow1} <> {systemdate} then send {systemdate} to the text window.