Dear All,
When I try to use the code below the first messagebox shows ok but then I get the error message in the attached file. If I choose to continue the next messagebox shows ok, and then another error message...
(I first thought there was a problem with using "row" after a filtering, hence the use of Lrow)
I don't understand why :sign0085:
When I try to use the code below the first messagebox shows ok but then I get the error message in the attached file. If I choose to continue the next messagebox shows ok, and then another error message...
(I first thought there was a problem with using "row" after a filtering, hence the use of Lrow)
I don't understand why :sign0085:
B4X:
Sub TblRas_SelectionChanged (ColName, Row)
If ColName="RasNr" OR ColName="RasNamn" Then
If tblRas.Cell("Chosen",Row)="X" Then
tblRas.Cell("Chosen",Row)=""
LRow=Row
Else
tblRas.Cell("Chosen",Row)="X"
LRow=Row
End If
End If
Msgbox("0:"&lrow)
tblRas.SelectCell("Dummy",Row)
Msgbox("1:"&lrow)
tblRas.Filter("Chosen='X'")
If tblRas.RowCount>0 Then LblInfo.Text="Ras: " & tblRas.Cell("RasNamn",0)
tblRas.Filter("")
Msgbox("2:"&lrow)
tblRas.SelectCell("Dummy",LRow)
End Sub