i want to scroll to an item in a listview and select that item to use in a label or text etc How do you code to select an item from a list say using a 'long click' or similar to highlight it?? I have found many responses to this question but I cannot see one that specifically shows this using Basic4android. Can't help being old and stupid I guess but a thing like this shouldn't really be this hard or generate so many how too's? Anyway thanks.
Asked
Active
Viewed 5,386 times
2 Answers
0
Sub Process_Globals
Type twostrings (aLabel As String , bLabel As String)
Dim oGPS As GPS
End Sub
sub LoadList
Dim ts As twostrings
ts.Initialize
ts.aLabel="ABC"
ts.bLabel="ABC Description"
listMyData.AddTwoLines2(ts.aLabel,ts.bLabel,ts)
end sub
sub listMyData_Click(Position as Int, Value as Object)
Dim ts As twostrings
ts.Initialize
ts=Value
lblLabelA.Text=ts.aLabel
lblLabelB.Text=ts.bLabel
end sub

Golden Lion
- 3,840
- 2
- 26
- 35
0
Have you seen the ListView Tutorial? I believe that the first example should help you get started.

Erel
- 1,802
- 2
- 15
- 58
-
Thanks Erel. I missed that completely before for some reason. now I use Sub ListView1_ItemClick (Position As Int, Value As Object) aetext1.text= Value – user1009135 Oct 24 '11 at 23:43