[บทเรียน,B4X] ตรวจสอบ FirstTime ใน MainPage

Theera

Well-Known Member
Licensed User
Longtime User
วิธีที่1 LacaMS
B4X:
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
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…