This seemed like such a common occurrence to me, I would of thought it would of been posted many many times before, but I searched and could not find an answer. So, I am really sorry, if it has (as I would of thought).
Normally, I can use code as bellow:
The above will work UNLESS the "RandomView" has been initialized, but not added to a parent view.
Is there anyway to check this state without triggering an error?
Normally, I can use code as bellow:
B4X:
Sub MySub
If RandomView <> Null AND RandomView.IsInitialized Then
RandomView.BringToFront
End If
End Sub
Is there anyway to check this state without triggering an error?