Hi guys, I have a problem while checking the type of a view (don't know if previous versions of B4A are affected, mine is 9.30).
The EditText object is recognized as a Label (the LOG says: IS A LABEL) !
It is a problem when using GetAllViewsRecursive in a panel populated at runtime....
Is it a bug or inheritance ? If it is inheritance, please tell me how to replicate this feature, sounds interesting...
OR ELSE: is there any other way for type-checking ?
Thank you
B4X:
Dim T As EditText
T.Initialize("TXT")
T.Text="My Text Value"
Activity.AddView(T,10,10,100,100)
If T Is Label Then
Log("IS A LABEL")
End If
The EditText object is recognized as a Label (the LOG says: IS A LABEL) !
It is a problem when using GetAllViewsRecursive in a panel populated at runtime....
Is it a bug or inheritance ? If it is inheritance, please tell me how to replicate this feature, sounds interesting...
OR ELSE: is there any other way for type-checking ?
Thank you