Android Question [Solved] Error compiling

Ricky D

Well-Known Member
Licensed User
Longtime User
Here is my code

B4X:
    Private clvFareType As CustomListView

B4X:
    s = "Select Desc From FareTypes Order By Desc"
    Try
        Dim cur As Cursor = Starter.sql.ExecQuery(s)
        If cur.RowCount>0 Then
            For i=0 To cur.RowCount-1
                cur.Position=i
                lft.Add(cur.GetString("Desc"))
                clvFareType.AddTextItem(cur.GetString("Desc"), cur.GetString("Desc"), True)
            Next
        End If
        cur.Close
    Catch
        Msgbox("FareEdit.Activity_Create - " & LastException,"Error")
    End Try

I get this error

B4A Version: 7.30
Parsing code. (0.09s)
Compiling code. Error
Error compiling program.
Error description: Too many parameters.
Error occurred on line: 83
clvFareType.AddTextItem(cur.GetString("Desc"), cur.GetString("Desc"), True)
Word: _c

I have added a isBold parameter before to the customlistview and all was working

Any ideas?
 

Ricky D

Well-Known Member
Licensed User
Longtime User
I decided to create a fresh app using the code and it compiles.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…