Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 6th, 2006, 05:47 AM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Array Problem

HI every1

I am using array with 2000 length in my project.I want to use unbound array.What are the option other than arraylist and array

Thanx
Monika

 
Old September 6th, 2006, 07:18 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Wow, I am not sure i'd want to have an array that big, but in any case you can do something like this:

string[] sArray = new string[2000];

of course you could change this to refelect whatever datatype you are storing (if you are only storing integer values, use an integer etc)

You can then access sArray with .GetUpperBound(0)

hth

"The one language all programmers understand is profanity."
 
Old September 12th, 2006, 02:15 PM
Registered User
 
Join Date: Sep 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Pawan Sharma Send a message via Yahoo to Pawan Sharma
Default

Hi monika how you doing,
                          well you can try hash key instead of array
as it is more compatible comparted to array.
                            if you succeed do reply me:)

Pwn
 
Old September 13th, 2006, 05:56 AM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default

HI

I am not using hash key becoz it gives very limited access so i am not using this.I am using ArrayList for my large data.

Thanks for yr reply
monika








Similar Threads
Thread Thread Starter Forum Replies Last Post
Array Problem...Can anyone help?? :( Shuchik Classic ASP Basics 1 September 25th, 2007 05:21 AM
Array problem Ivanchan Excel VBA 2 July 24th, 2007 08:28 PM
problem in getting the value of an array knightneo Beginning PHP 0 December 4th, 2006 10:23 PM
Array problem NEO1976 Javascript 0 August 3rd, 2006 03:55 AM
Array Problem hayley Classic ASP Basics 4 February 2nd, 2005 12:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.