Android Question Strange compilation error

Discussion in 'Android Questions' started by Arf, Mar 23, 2015.

  1. Arf

    Arf Active Member Licensed 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:
    Code:
    Dim pp(2As 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.
     
  2. Arf

    Arf Active Member Licensed User

    Oh nevermind, found it. Not supposed to be using DateTime.DateFormat for that!
     
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