Sub Class_Globals
Private mFirstTimeAppeared As Boolean = True
Private Sub B4XPage_Appear
If mFirstTimeAppeared Then
Else
End If
mFirstTimeAppeared = False
End Sub
ตัวอย่าง
B4X:
Private Sub B4XPage_Appear
If mFirstTimeAppeared Then
Wait For (RetrieveNewDataForSomeSource) Complete (Updated As Boolean)
If Updated Then UpdateDataViews
'...
End If
End Sub