J joofville Member Licensed User Longtime User Feb 13, 2013 #1 Hey guys. I am getting the following error when working with Lists, here's an example Code: Copy 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 ?? Parsing code. 0.01 Compiling code. 0.05 Compiling layouts code. 0.01 Generating R file. 0.49 Compiling generated Java code. Error B4A line: 53 mainList = GetMyData javac 1.7.0_05 src\b4a\example\main.java:276: error: inconvertible types mostCurrent._mainchannels.setObject((java.util.List)(mostCurrent._dbstuff._getchannels(mostCurrent.activityBA))); ^ required: List found: String Click to expand...
Hey guys. I am getting the following error when working with Lists, here's an example Code: Copy 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 ?? Parsing code. 0.01 Compiling code. 0.05 Compiling layouts code. 0.01 Generating R file. 0.49 Compiling generated Java code. Error B4A line: 53 mainList = GetMyData javac 1.7.0_05 src\b4a\example\main.java:276: error: inconvertible types mostCurrent._mainchannels.setObject((java.util.List)(mostCurrent._dbstuff._getchannels(mostCurrent.activityBA))); ^ required: List found: String Click to expand...
mc73 Well-Known Member Licensed User Longtime User Feb 13, 2013 #2 Try Code: Copy Sub GetMyData as List Upvote 0
J joofville Member Licensed User Longtime User Feb 13, 2013 #3 mc73 said: Try Code: Copy Sub GetMyData as List Click to expand... Ahh! You rock! thanks. Upvote 0