Android Question Error Array dimensions exceeded supported range.

ShadTech

Member
Licensed User
i have this when compiling

"B4A Version: 13.00
Parsing code. Error
Array dimensions exceeded supported range."

no error code line
no red color font
where the problem is????
 
Without any code to check it's quite impossible to guess where the problem is.
 
Upvote 0
no error code line
no red color font
where the problem is????
@ShadTech as stated in previous posts, without a program source its hard to tell what goes wrong.
Code: Copy
    ' Declare and initialize an integer array
    Dim intArray(5) As Int  ' <==== Range 0 - 4
    intArray = Array As Int(1, 2, 3, 4, 5)

    ' Access array elements
    Log(intArray(0)) ' Outputs: 1
    Log(intArray(4)) ' Outputs: 5
    ' Request 5 is greater then end range 4
    Log(intArray(5)) ' Outputs: Error because the requested value is outside the specified range
Just put a breakpoint in a few places and see how far the program runs and pay attention to the behavior when using Array variable. Also check if you actually call all routines.
 
Upvote 0
Back
Top