B4J Question how to know their class type

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi

I have two class as following
B4X:
dim class1 as jyMbSerial
dim class2 as jyMbTcp
And i pass them to following function
B4X:
publice sub Setinterface(intf as object)
        :
end sub

SetInterface(class1)  Or SetInterface(class2)
In SetInterface,How to check intf is jyMbSerial Or jyMbTcp ??
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…