I have a number x of panels in a ScrollView, each panel has 4 labels and 4 images. The first parameter is the same name of the first image so if you want to take the text from label to query by clicking on the panel function is very good and the code is as follows
the problem and do not want to get the text from the label but from one of the 4 images by clicking on it. The name on the label and the same name for the image file + png
I tried a bit with all File.DirAssert but to no avail.
could you suggest me how to do it please.
thanks
B4X:
Sub P_Click
Dim pnl As Panel
Dim lbl As Label
pnl=Sender
lbl=pnl.GetView (pnl.Tag)
ListaProvince=lbl.Text
ListaRegione=CmbRegione.SelectedItem
Tipo=""
StartActivity("FrmShowRecord")
End Sub
the problem and do not want to get the text from the label but from one of the 4 images by clicking on it. The name on the label and the same name for the image file + png
B4X:
sub ImgProvincia_Click
dim img as imageview
dim txt as string
img=sender
txt= ??????????????????????????
end sub
I tried a bit with all File.DirAssert but to no avail.
could you suggest me how to do it please.
thanks