When trying to get the value of a listview selectedindex i always get a null value.
if i include the selecteditem, i get both values. and with just selectedItem work well.
if i include the selecteditem, i get both values. and with just selectedItem work well.
B4X:
Sub listRooms_SelectedIndexChanged(Index As Int)
Dim xVarInx as string
Dim iVarInx as string
xVarInx=listRooms.SelectedItem
iVarInx=listRooms.SelectedIndex
GetRooms (iVarInx)
GetFullRooms (iVarInx, xVarInx)
End Sub
Sub GetRooms ( RoomNumber as string)
msgbox.show (RoomNumber,"") ' Get nothing. Why ???
End Sub
Sub GetFullRooms ( RoomNumber as string, RoomName as string )
msgbox.show (RoomNumber,RoomName) ' Get Number and Name.
End Sub