NOTE: My page is created using:
In B4A I do the following routine
In B4i I needed to add a delay otherwise I crash (don't need delay in B4A)
I tried doing
But without the Sleep delay still crashed.
Is the delay a B4I requirement?
B4X:
B4XPages.AddPageAndCreate(cBBsGlobals.DEFINE_PageName_UserPreferences, mUserPreferences)
In B4A I do the following routine
B4X:
#Region Preferences_Click
Private Sub sReports_Options_Preferences_Click
Dim Preferences As pUserPreferences = B4XPages.GetPage(cBBsGlobals.DEFINE_PageName_UserPreferences)
If Preferences.IsInitialized Then
B4XPages.ShowPage(cBBsGlobals.DEFINE_PageName_UserPreferences)
#if B4i
Sleep(125)
#end if
Preferences.Show_Preferences("PDF Print")
End If
End Sub
#end Region
In B4i I needed to add a delay otherwise I crash (don't need delay in B4A)
I tried doing
B4X:
CallSubDelayed2(Preferences, "Show_Preferences", "PDF Print")
But without the Sleep delay still crashed.
Is the delay a B4I requirement?
Last edited: