Think of something that you wish Authorware could do but it doesn't?  Let the our good friends at Macromedia know via the wishlist.

Please let us know if you find any of the materials on this site inappropriate or offensive. Please include the url and why the material should be reviewed.

Comments and questions about the site are also welcome. Please no Authorware questions, use the AWARE list.

Back

B7007 - How do I set up a multidimensional array?

by - Joseph Ganci


I am trying to setup a 3D array. I am doing the following but not getting very far.

Var1=1
MyArray=Array(99,99,99)
MyArray[1,1,4]=Var1

Where am I going wrong?

You're missing the first argument, which tells Authorware what default value to place in each location in the array. If you're intending on placing strings in the array, you should use:

MyArray := Array("" , 99 , 99 , 99)

otherwise use

MyArray := Array(0 , 99 , 99 , 99)

There are 0 reviews
Add your review
Back