Hi,
I need help with this problem.
I need procedure for click on table cell. On first click I need select cell, on second click I want do something. But table dont have event onClick. Exist any workaround? This is my test code, but this code dont work.
I need help with this problem.
I need procedure for click on table cell. On first click I need select cell, on second click I want do something. But table dont have event onClick. Exist any workaround? This is my test code, but this code dont work.
B4X:
Sub Globals
'Declare the global variables here.
Dim crow
Dim ccol
End Sub
Sub App_Start
Form1.Show
Table1.AddCol (cNumber, "ID", 50, True)
Table1.AddCol (cString, "Name", 50)
Table1.AddRow (234564, "John")
Table1.AddRow (987654, "Kate")
End Sub
Sub Table1_SelectionChanged (ColName, Row)
If ((crow = Row) AND (ccol = ColName)) Then
Msgbox("Click on " & Table1.Cell(ColName,Row))
End If
crow = Row
ccol = ColName
End Sub