B4X:
Sub Button_Action
Dim Btn As Button = Sender
Dim Text As String = Btn.Text.Replace(" ", "_")
LogDebug("Sub_" & Text)
If SubExists(Me, Text) Then CallSub(Me, Text)
End Sub
The above code won't work when I click on any of the buttons I have on my form. Any ideas?