Of course I did what I had to do: Project / add existing module / load CustomListView
What happened next?
Sub Globals
Dim NAMENLIJST As CustomListView 'this is excepted 'NAMENLIJST is Dutch for ListOfNames
Dim Teller as int
But in the Sub Activity_Create an error is found
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Main")
Teller = 1
NAMENLIJST.Initialize(Me, "NAMENLIJST")
Activity.AddView(NAMENLIJST.AsView, 0, 50%y, 100%x, 50%y) 'So far so good
NAMENLIJST.Add(CreateListItem("Item #" & teller, NAMENLIJST.AsView.Width, 50dip), 50dip, "Item #" & teller)
The last line of code gets an error:
Error parsing program.
Error description: Undeclared variable 'createlistitem' is used before it was assigned any value.