Android Question Listview help!

Beja

Expert
Licensed User
Longtime User
Hi All,
I am working on a small project and facing difficulty compiling a string array from the contents of the listview.
please help!
Please see that attached screenshot of the user interface.. I want the result be as following:
"4","Soda"
"3","water"
"14","Bottle Soda"
"4","Charcoal"
"6","Ice"
"8","Hotdog"

Only the checked lines are added to the array.. On the other side I will parse the csv file into a SQLite table.
Thanks in advance.
 

Attachments

  • sshot.png
    38.3 KB · Views: 167

Erel

B4X founder
Staff member
Licensed User
Longtime User
I'm happy to hear that
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
we must appreciate and recognize those who work hard for all.
I remember in the nineties, when I bought an AciveX control to use the printer port as an I/O in VB4, for $250! Now we have
more advanced and useful libraries and free, even some with source code.. see how Erel and his people are changing the world.

@Luca
One thing I failed to know how to do.. to get the clicked button text.. now when I click on the button I get the check box value. I know
why it does that, but I want the button text returned.
this one doesn't work:
Msgbox("Item value: " & clv3.GetValue(index) & CRLF & "Button value: " & b.text, "")
It is returning the button text of the last button in the list, regardless of the clicked button.

Any help appreciated.

Edit:
never mind.. I figured it out!
One event (chk) is enough because they share the same list item.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…