forums

TNT Basic Forums > Programming Q&A
what on earth does..
< Last Thread     Next Thread >
Author
Thread        Post A Reply

09-15-2004 18:48

Posted by:
charlie

Location:
norfolk, england

Click Here to Email charlie   Find more posts by charlie

Array index is the wrong arity mean?

cheers
charlie

09-15-2004 23:02

Posted by:
eekaydee

Location:
CA, USA

Click Here to Email eekaydee   Find more posts by eekaydee

Oh, that...it has to do with the number of dimensions in the array. For example, if you create a three-dimensional array and don't specify all three dimensions, that error will appear:

int threeD[10,10,10]
threeD[4,3]=11 '<-----here, you only specified two of the three dimensions, and an error will arise

Similarily, the error will occur if you specify more dimensions than an array has:

int twoD[10,10]
twoD[1]=1 '<--ERROR!

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.