1.Create a form
2. Form>design>control>timeedit(Name : realTime)
3.Write form run methods
method1:
void updateRealTime()
{
realTime.value(timenow());
// Set a Time Out with the idle flag set to false
this.setTimeOut(identifierstr(updateRealTime), 1000, false);
}
method2:
void run()
{
super();
this.updateRealTime();
}
Note:Here realTime is control name
Refer AOT>Form>tutorial_timer
No comments:
Post a Comment