Multi- Dimensional Arrays?
BlitzPlus Forums/BlitzPlus Beginners Area/Multi- Dimensional Arrays?
| ||
I am new to BlitzPlus, and I am having a hard time trying to do something that I have done in other languages easily! I want to create Multi-Dimension Array. If I understand correctly Blitzplus does not support these :( In other languages I have created the line :- Dim array (3,1000) to set up the array. Then I need to store a lot of xcentre and ycentre co-ordinates of a Circle, and also the radius. So I could store these numbers in the Array like :- array(1,1) =xcentre array(2,1) =ycentre array(3,1) =radius Then the next circle I would store like :- array(1,2) =xcentre array(2,2) =ycentre array(3,2) =radius etc etc It is very easy to recall any circle properties by accessing the array at a certain number. I understand that you can use Types for this purpose, but I am at a loss as to how they work??? I have looked at lots of examples on the forum, but I get more confused! Any help would be much appreciated. Thanks Andy |
| ||
Blitz does support them. They work the same way as the arrays above. |
| ||
Thanks Joseph I did read somewhere that they did'nt work, but I must have got confused with another program.....Blitzmax??? I think the problem was that I was not specifying what the array was storing Integer, Long, String etc. I have just changed it, and it worked! Thanks Andy |