This code works
But is it possible to do the same with "Select case" instead of "If Then else"?
B4X:
Sub Process_Globals
Type t1(memberX As String)
Type t2(memberY As String)
End Sub
Sub AppStart (Args() As String)
Dim vt1 As t1
Dim vt2 As t2
LogType(vt1)
LogType(vt2)
End Sub
Sub LogType(o As Object)
If o Is t1 Then
Log("t1")
else if o Is t2 Then
Log("t2")
End If
End Sub
But is it possible to do the same with "Select case" instead of "If Then else"?