Code: Select all
Function UpdateTime()
time = {hour="00", mins="00", secs="00"}
time = SplitStr(GetTime(True),":")
If time["secs"]= "20" Then mui.Set("sl_min", "value", "20")
EndFunction
As you can see all three fields were initialized in the constructor:
time = {hour="00", mins="00", secs="00"}