Android Question Strange compilation error

Arf

Well-Known Member
Licensed User
Longtime User
I'm getting a build error and I can't fathom why. It was all building fine earlier and I don't think I've touched this code:
B4X:
Dim pp(2) As String

    For i=0 To examlist.Size - 1
        pp = examlist.Get(i)
        List1.Add(Array As String(DateTime.DateFormat(pp(0)), pp(1)))
    Next

The error:
B4A version 4.30
Parsing code. 0.06
Compiling code. Error
Error compiling program.
Error description: Array expected.
Occurred on line: 135
List1.Add(Array As String(DateTime.DateFormat(pp(0)), pp(1)))
Word: (

Can anyone spot what I've done wrong? Its driving me crazy.
 

Arf

Well-Known Member
Licensed User
Longtime User
Oh nevermind, found it. Not supposed to be using DateTime.DateFormat for that!
 
Upvote 0
Top