Hi!
How do i create a text label that shows the week number that refreshes every second so it keeps the content up to date when a new week arrives? Thank you!

Hi!
How do i create a text label that shows the week number that refreshes every second so it keeps the content up to date when a new week arrives? Thank you!
Hi @Anonymous ,
1. On the OnStart of your app, enter
Set( varCurrentTime, Now() )
2. Add a Timer control
3. Set the AutoStart property of the Timer control to True
4. On the OnTimerEnd property of the Timer control, enter:
Set( varCurrentTime, Now() )
5. Set your label to:
WeekNum(varCurrentTime)
------------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.