Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there any way to create a DIM with variables?
#4
Well, you can also use CONST to define a value, and use them in an array definition

Code:
const cols as Uinteger = 32
const rows as Uinteger = 24
dim a(rows, cols) as Uinteger

Rows and cols cannot change. They're constants. So this is allowed. 8)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)