Active Server Pages Programming (ASP)/ASP Multi Dimension Array

Advertisement


Question
Hi Srini

Long time no meet. ;-) Hope that your vacation is a good one.

I would like how to deal with multi dimensional arrays.

Eg,
Dim CartArray()
Redim CartArray(1,1)

How to increase the no of arrays in the CartArray?

Ie, making the CartArray(1,1) to CartArray(5,5)

I read about articles which mentioned that this is impossible. Redim Preserve CartArray(1,5) = only allows incremental value for the last value of a multi dimensional array, i found this very hard to believe.

Please advise

Answer
Hi

Happy new year.. Hope the new year celebration went well..

Sorry for the delay on my reply i was busy with something else...

Yes, i've no idea about multi dimension array have this limitation. I did some more search and found it's true..

http://snipplr.com/view/1537/asp-initialize-twodimensional-array/

It's a pain!!!!!

-Srini

Active Server Pages Programming (ASP)

All Answers


Answers by Expert:


Ask Experts

Volunteer


Srini Nagarajan

Expertise

I can answer any kind of questions in ASP.NET, C#, VB.NET, SharePoint 2007, ASP, Coldfusion, Powerbuilder 7.00 / 8.00, JAVA servlets, MS SQL 2000 / MSSQL7, Sybase

Experience

Contact me if you need any custom development on ASP.NET, ASP, SharePoint 2007, Coldfusion, Powerbuilder.

©2012 About.com, a part of The New York Times Company. All rights reserved.