Hello,
I am not able to access a Label in a panel with CLV. If we remove the panel from the layout then I can access the label.
Below is my code :
Please advice
Thanks
I am not able to access a Label in a panel with CLV. If we remove the panel from the layout then I can access the label.
Below is my code :
B4X:
Sub clvBarcode_ItemLongClick (Index As Int, Value As Object)
Dim item As CLVItem = clvBarcode.GetRawListItem(Index)
Dim p As Panel=item.Panel.GetView(0)
Dim lbl4 As Label=p.GetView(3)
Msgbox2Async("Do you want to delete?", "Delete Item", "Yes", "No", "", Null, False)
Wait For MsgBox_Result (iResult As Int)
If iResult = DialogResponse.POSITIVE Then
Log("Deleted row/"& lbl4.Text)
Private Query As String
Query = "delete from barcode_details where barcodeId='" & lbl4.Text & "'"
SQL1.ExecNonQuery(Query)
ShowBarcode
End If
End Sub
Please advice
Thanks