English 中文(简体)
您如何从清单中选择一个项目,并用简况4
原标题:how do you select an item from a listview and use it in say, a label or text using Basic4android

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.

问题回答

您是否看到

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




相关问题
Multi-line button labels

Is there an easy way to have two lines of button.text where you specify each line individually? Also, there seem to be large margins on the buttons so the text font needs to be quite small to fit. ...

GPS Specific questions for Service application

I am working on a simple application that I need to be run as a service and report gps position every 3 minutes. I already have a working example based on the tutorial, but still have the followin ...

B4ABridge not working for most of files

I am trying several examples from the forum, most of the samples are not in my phone but are unable to be installed via the B4ABridge even it says it is connected. How can this be fixed? this is what ...

How to track direction of a motion?

How do I track the direction of a motion in Android ? Think WiiMote, it can track what direction you move it (not talking about the IR lamps), is it possible to do similar in android, if so, how? ...

Disadvantages of using Basic4Android? [closed]

I am currently researching the pros and cons about Basic4Android. I have a good list of pros (http://www.basic4ppc.com/android/why.html) but what are some disadvantages to using this? What limitations ...

Page navigation on Android using Basic4android

I am new to Android programming. Using VB, how to navigate from one page to another page using Basic4android tool in www.basic4android.com Code will be startacticity("login")

热门标签