Android Question Error Array dimensions exceeded supported range.

Juan Vargas (Bioagro)

Member
Licensed User
Im getting this error when trying to compile a project.

B4X:
B4A Version: 12.80
Parsing code.    Error
Array dimensions exceeded supported range.

But, where????
 

emexes

Expert
Licensed User
Im getting this error when trying to compile a project.

B4X:
B4A Version: 12.80
Parsing code.    Error
Array dimensions exceeded supported range.

But, where????

Assuming that that is the entire error message, and you are flying as blind as we are, then it would help if you could either:

- do a File, Export As Zip
- post the resultant Zip to this thread using Attach files

or:

- go to the Quick Search tab in the IDE
- search for dim
- click in the results, Ctrl+A Ctrl+C to select and copy the results to the clipboard,
- past the results to this thread eg:

SAMPLE Quick Search results for 'dim':
Dim anchopantalla As Int = 6
Dim altopantalla As Int = 6
'''Dim source() As Float = Array As Float(4.0, 4.0, 29.0, 16.0, 27.0, 37.0, 5.0, 20.0)
Dim source() As Float = Array As Float(10, 20, 130, 20, 130, 140, 10, 140)
Dim destination() As Float = Array As Float(0, 0, anchopantalla, 0, anchopantalla, altopantalla, 0, altopantalla)
Dim ToXY() As Float = Array As Float(X, Y)
Dim FromXY() As Float = WhereDidItComeFrom(source, destination, ToXY)
Dim dstwidth As Float = dst(4)
Dim dstheight As Float = dst(5)
Dim dstx As Float = dstxy(0)
Dim dsty As Float = dstxy(1)
Dim HowMuchRight As Float = dstx / dstwidth
Dim HowMuchLeft As Float = 1 - HowMuchRight
Dim HowMuchBottom As Float = dsty / dstheight
Dim HowMuchTop As Float = 1 - HowMuchBottom
Dim HowMuchTopLeft As Float = HowMuchTop * HowMuchLeft
Dim HowMuchTopRight As Float = HowMuchTop * HowMuchRight
Dim HowMuchBottomLeft As Float = HowMuchBottom * HowMuchLeft
Dim HowMuchBottomRight As Float = HowMuchBottom * HowMuchRight
Dim srcx As Float = src(0) * HowMuchTopLeft _
Dim srcy As Float = src(1) * HowMuchTopLeft _
Dim srcxy() As Float = Array As Float(srcx, srcy)
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Im getting this error when trying to compile a project.

B4X:
B4A Version: 12.80
Parsing code.    Error
Array dimensions exceeded supported range.

But, where????
There is no guarantee that the error message refers to an array in your source code. In fact, it is almost certain that this is not the case, as you are in the compilation phase.

Do you have other messages, even just Warnings, in the Log?
 
Upvote 0

kimstudio

Active Member
Licensed User
Longtime User
With the code attached my optimistic guess is the problem will be solved in less than 1 min by our great forum members :cool: .

I think the question "where" here is the compiler doesn't indicate which line of code has this problem if it's a parsing code error.
 
Upvote 0
Top