Auto refresh screen

Can someone tell me how to auto refresh a screen? i am getting data from firebase and it is updating every second. I need to make it auto refresh screen every second to make it realtime.

Use a timer
when Clock1.Timer
call FirebaseDB1.getValue
tag = <whatever you wish to>
valueIfTagNotThere = ""

Then use
when FirebaseDB1.gotValue
if tag = <whatever you wish to>
set label1.text = get value

1 Like

do you have an example block?

these are blocks itself, just typed

blocks (3)
blocks (2)

Just fire the timer , that's it

1 Like

thanks you sir <3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.