iOS Question Test if an object is Panel, ImageView, Label etc.

Alessandra Pellegri

Active Member
Licensed User
Longtime User
I am actaully doing so:
B4X:
dim a as label
try
  a=myGenericObject
  doLabelThings
catch

end try
dim b as panel
try
  b=myGenericObject
  doPanelThings
catch

end try

etc. etc.

I would like to know if there is a more elegant way to do so.

Thank you
 
Top