I have two lines list view with no bitmaps, I used this code to get value of two lines, but I get an error, what is the correct method to get values of two lines?
java.lang.ClassCastException: java.lang.String cannot be cast to anywheresoftware.b4a.shell.Shell$RemoteObject
java.lang.ClassCastException: java.lang.String cannot be cast to anywheresoftware.b4a.shell.Shell$RemoteObject
B4X:
Type TwoLines (FirsText As String , SecondText As String)
B4X:
Sub lstRowBrowser_ItemLongClick (Index As Int, Value As Object)
Dim TwoStrings As TwoLines
TwoStrings.Initialize
TwoStrings = Value ' value returns value of first line only
Log(TwoStrings.FirsText) ' error
Log(TwoStrings.SecondText)