Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

yaroslavd

Traversing an array of unknown dimensions

This topic is 5651 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
I''m having another problem. Now I just need to know the length of each dimension. However, the Length property returns the number of elements in ALL the dimensions and I can''t find a property/method that does what I want.

Share this post


Link to post
Share on other sites
GetUpperBound, passing in the dimension, returns the largest valid index for that dimension. Add one, and you have the length!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!