iOS Question xCustomListView Add "Too Many Parameters" [SOLVED] {TAKE 2]

mmieher

Active Member
Licensed User
Longtime User
Hi, Geniuses!

I am having the same problem as https://www.b4x.com/android/forum/threads/xcustomlistview-x2-errors.92974/#content

My xCustomListView library is 1.62.

No syntax error indicated here:

B4X:
    Dim clvMenu As CustomListView    ' This is in Process Globals

        Dim tDesc As String = rS.GetString("catdesc")
        Dim cli As Panel = CreateCatItem(tDesc,clvMenu.AsView.Width,25dip)
        Dim NullItem As Int = -1
    '    clvMenu.Add(cli,30dip,-1)
        clvMenu.Add(cli,NullItem)

When compiling I get an error on the clvMenu.Add line. "Too many parameters". As you can see, there are clearly two parameters.

Have tried Clean, etc. If it makes any difference, I was orginally using the built-in CustomListView

Any ideas?
 

mmieher

Active Member
Licensed User
Longtime User
[SOLVED] I was referencing the library xCustomListView because I thought I had to. Apparently, that was a mistake.
 
Last edited:
Upvote 0

klaus

Expert
Licensed User
Longtime User
Please add [Solved] in the title of your thread.
You can change the title here, in the top right corner of the first post in the thread.

upload_2018-9-11_19-46-32.png
 
Upvote 0
Top