Hello,
I am new to the realm of PDA development and have not coded for close to 15 years. I really enjoy using basic4android and find it very "gentle" on the system! I have been working on my first app and ran into an issue with tables and the "click" events.
I populated my table with data from a SQL server (thanks for the tutorial) and would like to display text when a cell or header is clicked. I created a handler to handle this event in this manner:
Sub Globals
Dim btnButton1 As Button
Dim edtText1 As EditText
Dim lblLabel1 As Label
Dim tblTable As Table
End Sub
.
.
.
Sub tblTable_CellClick
ToastMessageShow("Cell click", False)
End Sub
Sub tabTable_HeaderClick
ToastMessageShow("Header click", False)
End Sub
When I click on any cell or header, the handler code is never called. I created a button handler as such and it works fine:
Sub btnButton1_Click
If edtText1.Text <> "" Then
lblLabel1.Text = edtText1.Text
Else
lblLabel1.Text = "!! ENTER TEXT !!"
ToastMessageShow("Enter text to copy", False)
End If
End Sub
Can anyone assist with this?
Cheers!
I am new to the realm of PDA development and have not coded for close to 15 years. I really enjoy using basic4android and find it very "gentle" on the system! I have been working on my first app and ran into an issue with tables and the "click" events.
I populated my table with data from a SQL server (thanks for the tutorial) and would like to display text when a cell or header is clicked. I created a handler to handle this event in this manner:
Sub Globals
Dim btnButton1 As Button
Dim edtText1 As EditText
Dim lblLabel1 As Label
Dim tblTable As Table
End Sub
.
.
.
Sub tblTable_CellClick
ToastMessageShow("Cell click", False)
End Sub
Sub tabTable_HeaderClick
ToastMessageShow("Header click", False)
End Sub
When I click on any cell or header, the handler code is never called. I created a button handler as such and it works fine:
Sub btnButton1_Click
If edtText1.Text <> "" Then
lblLabel1.Text = edtText1.Text
Else
lblLabel1.Text = "!! ENTER TEXT !!"
ToastMessageShow("Enter text to copy", False)
End If
End Sub
Can anyone assist with this?
Cheers!