Arf Well-Known Member Licensed User Longtime User Mar 23, 2015 #1 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: Code: Copy 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.
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: Code: Copy 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 Mar 23, 2015 #2 Oh nevermind, found it. Not supposed to be using DateTime.DateFormat for that! Upvote 0