easy question ?

tremara1

Active Member
Licensed User
Longtime User
How do you get the second value from a 2 line listview.
created with
B4X:
lstList.AddTwoLines(text1,text2)

try to read text2 with
B4X:
lstlist.TwoLinesLayout.SecondLabel.Text

nothing returned.

thanks...
 

klaus

Expert
Licensed User
Longtime User
You should use this:
B4X:
[COLOR=#0000ff]Dim[/COLOR][COLOR=#000000] Label1 [/COLOR][COLOR=#0000ff]As[/COLOR][COLOR=#008b8b]Label[/COLOR]
[COLOR=#000000]Label1 = ListView1.TwoLinesLayout.SecondLabel[/COLOR]
[COLOR=#000000]txt=Label1.Text[/COLOR]
Basic4android - Views (Core)

Best regards.
 
Upvote 0

tremara1

Active Member
Licensed User
Longtime User
Still no go

I tried that method Klaus put up but still get no text...any other suggestions....
 
Upvote 0
Top