Obtains the current time based on the system time of the client machine.
Now ( )
Time. Returns the current time based on the system time of the client machine.
Use Now to compare a time to the system time or to display the system time on the screen. You can use the Timer function to trigger a Timer event which causes Now to refresh the display.
This statement returns the current system time.
Now()
This example displays the current time in the StaticText st_time. It keeps the time up-to-date by setting a timer that triggers a Timer event every 60 seconds. Code in the window’s Open event displays the initial time and starts the timer. Code in the Timer event displays the time again.
The following code appears in the window’s Open event script:
st_time.Text = String(Now(), "hh:mm")
Timer(60)
A single line in the Timer event script refreshes the time display:
st_time.Text = String(Now(), "hh:mm")
Now method for DataWindows in the DataWindow Reference or the online Help