Lists, what am I doing wrong?

joofville

Member
Licensed User
Longtime User
Hey guys.

I am getting the following error when working with Lists, here's an example

B4X:
Sub Globals
   Dim mainList As List
End Sub

Sub Activity_Create(FirstTime As Boolean)
   mainList.Initialize
   mainList = GetMyData
End Sub

Sub GetMyData
   Dim workList as List
   workList.Initialize
   workList.Add("Hello")
   return workList
End Sub

This is the error ??

 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…