Android Question Compiler errors using StringFunctions v1.05 library (Resolved)

Reproretro

Member
Licensed User
Longtime User
Hi
I have the library selected in the manager and in Sub Globals I have:
Dim sf As StringFunctions
sf.Initialize

But I can't get a couple of functions to compile
e.g.
Dim WeatherTable() As List
WeatherTable = sf.Split("A,B,C,D", ",")

generates the error
B4A line: 252
WeatherTable = sf.Split(\
javac 1.8.0_45
src\b4a\example\main.java:868: error: incompatible types: java.util.List<Object> cannot be converted to anywheresoftware.b4a.objects.collections.List[]
_weathertable = (anywheresoftware.b4a.objects.collections.List[])(_vv3._vvvvvv5("A B C D"," ").getObject());
^
1 error
 

Reproretro

Member
Licensed User
Longtime User
Dim WeatherTable() As List

should be

Dim WeatherTable As List

I already tried that, but it gives me an error:

B4A version: 5.02
Parsing code. Error
Error parsing program.
Error description: Use of undeclared array: weathertable
Occurred on line: 257
Log(i & " " & WeatherTable(i))
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…