How do I pass a Type to a sub.
I want something like this pseudo code:
I want something like this pseudo code:
B4X:
Dim element 1 As Button
Dim element 2 As Label
Dim element 3 As Webview
----
DoSomething(element1, button, changeColor)
DoSomething(element2, label, changeText)
DoSomething(element3, webview, changeURL)
----
Sub DoSomething (subElement As Type, T As Type, Action As String)
'Do Something here
End Sub