Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dim Array At Constant Issue (*solved*)
#1
Bug 
Hi,

I'm trying to dim an array at a specific address which has been defined as a constant of type uinteger, unless I add 0 to the constant the code does not compile. 

const tileStart as uinteger = $4000+384

dim tile(0 to 255) as uinteger at tileStart         'this fails to compile with "Address must be a numeric constant expression" 
'dim tile(0 to 255) as uinteger at tileStart+0         compiles OK

print at 0,0;str(tileStart)

Am I missing something?

This is version: [v1.14.0]
Reply


Messages In This Thread
Dim Array At Constant Issue (*solved*) - by Ljg701 - 01-12-2021, 03:27 PM
RE: Dim Array At Constant Issue - by boriel - 01-12-2021, 04:24 PM
RE: Dim Array At Constant Issue - by boriel - 01-12-2021, 09:20 PM
RE: Dim Array At Constant Issue - by Ljg701 - 01-14-2021, 04:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)