Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multidim Arrays
#1
How to create and use a 2 dim array in QM? Could you give some examples?

I`d like to create an array (1-10) and each values would get a different state like on/off/pause/disabled/value of 100.

So

1 on off P D 100
2 on off P D 100
3 .....
4 ....
5 ...
...


Ho to create such array? and how to oparate on it?
Thanks.
#2
Example
Code:
Copy      Help
ARRAY(int) a ;;declare array of integers
a.create(3 3) ;;create array of two dimensions, 3 elements in each
;set elements

int x y
for x 0 3
,for y 0 3
,,a[x y]=x*10+y
;get elements
for x 0 3
,for y 0 3
,,out a[x y]


Forum Jump:


Users browsing this thread: 1 Guest(s)