InputList compile error

Exem

New Member
Licensed User
Longtime User
I have just tried to create an InputList dialog and got a compile error.

"Compiling generated Java code. Error
B4A line: 23
result = InputList(List1, \
javac 1.6.0_24"

Below is a modified version of the InputMultiList example (which does work).
B4X:
Sub Activity_Create(FirstTime As Boolean)
    Dim List1 As List
    List1.Initialize
    For i = 1 To 10
        List1.Add("Item #" & i)
    Next
    Dim result As List
    'no need to initialize it as it holds the list returned
    'result = InputMultiList(List1, "Select your favorite items")
    result = InputList(List1, "Select your favorite item", -1)
    
   Dim s As String
    s = "Favorite items:"
    For i = 0 To result.Size - 1
        s = s & CRLF & List1.Get(result.Get(i)) 'result holds the positions
    Next
    Msgbox(s, "")
End Sub

Is this a bug?

Regards

Geoff
 
Top