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

Discussion in 'Android Questions' started by Reproretro, Jul 4, 2015.

  1. Reproretro

    Reproretro Member Licensed 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
     
  2. LucaMs

    LucaMs Expert Licensed User

    Dim WeatherTable() As List

    should be

    Dim WeatherTable As List
     
  3. Reproretro

    Reproretro Member Licensed User

    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))
     
  4. Reproretro

    Reproretro Member Licensed User

    Brilliant!
    Thank you
     
  5. Reproretro

    Reproretro Member Licensed User

    I had made a typo
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice