473,398 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Max Size Of Array

RN1
Is there any limitation to the maximum size of an array in ASP?

Thanks
Dec 14 '07 #1
5 6377
RN1 wrote:
Is there any limitation to the maximum size of an array in ASP?
"ASP" does not have arrays: vbscript and jscript do, and the answer may
depend on which scripting language you are using (or maybe not - I'm
feeling too lazy right now to go look it up)

In either case, the answer is Yes, and hopefully you will never try to
reach the limit. Your server will probably die before you get there :-)
.. . .

OK, I did look it up: in VBA, the UBound function returns a Long value,
so the max value it can return is 2,147,483,647 - is that big enough for
you? :-)
I can't find the corresponding info for jscript right now, but I doubt
it's relevant for you anyways.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Dec 14 '07 #2
Bob Barrows [MVP] wrote:
I can't find the corresponding info for jscript right now, but I
doubt it's relevant for you anyways.
JScript arrays are associative and sparse, so they don't really have a
limit. There are practical limitations, however. For example, Array.length
is the same for (2^53)-element and (2^53+1)-element arrays
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Dec 14 '07 #3
RN1
On Dec 14, 11:47 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
RN1 wrote:
Is there any limitation to the maximum size of an array in ASP?

"ASP" does not have arrays: vbscript and jscript do, and the answer may
depend on which scripting language you are using (or maybe not - I'm
feeling too lazy right now to go look it up)

In either case, the answer is Yes, and hopefully you will never try to
reach the limit. Your server will probably die before you get there :-)
. . .

OK, I did look it up: in VBA, the UBound function returns a Long value,
so the max value it can return is 2,147,483,647 - is that big enough for
you? :-)
I can't find the corresponding info for jscript right now, but I doubt
it's relevant for you anyways.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Doesn't the max limitation depend on the server's memory size?
Dec 14 '07 #4
RN1 wrote:
On Dec 14, 11:47 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
>RN1 wrote:
>>Is there any limitation to the maximum size of an array in ASP?

"ASP" does not have arrays: vbscript and jscript do, and the answer
may depend on which scripting language you are using (or maybe not -
I'm feeling too lazy right now to go look it up)

In either case, the answer is Yes, and hopefully you will never try
to reach the limit. Your server will probably die before you get
there :-) . . .

OK, I did look it up: in VBA, the UBound function returns a Long
value, so the max value it can return is 2,147,483,647 - is that big
enough for you? :-)
I can't find the corresponding info for jscript right now, but I
doubt it's relevant for you anyways.
Doesn't the max limitation depend on the server's memory size?
Yes, I think I was implying that when I talked about his server dying.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Dec 14 '07 #5
RN1 wrote:
Doesn't the max limitation depend on the server's memory size?
Probably not as much as the OS limitation. I would be very surprised to hear
that JScript was re-written to use 64-bit memory addressing.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Dec 14 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: p175 | last post by:
Hi folks, I've tried reading just about every post I can on raid stiping / extent size etc and I'm just getting myself more confused than ever. Here's my situation. On a Windows Server 2000...
5
by: sugaray | last post by:
Hi, my problem with calculating the size of an array is when I pass an array as a parameter to a function which perform the calculation, the result never comes right, like below: int...
22
by: Wynand Winterbach | last post by:
I think every C programmer can relate to the frustrations that malloc allocated arrays bring. In particular, I've always found the fact that the size of an array must be stored separately to be a...
40
by: madireddy | last post by:
Hi, Inside a program how do i find out what size has been allocated to pointer using malloc. eg... int *p; p=(int*)malloc(1024*sizeof(int)); now how do find how much has been allocated to p?...
12
by: manochavishal | last post by:
Hi, I have a question. How can i know the size of array when it is passed to a function. For Example i have this code: #include <stdio.h> #include <stdlib.h>
8
by: redefined.horizons | last post by:
I would like to have an array declaration where the size of the array is dependent on a variable. Something like this: /* Store the desired size of the array in a variable named "array_size". */...
2
by: Harry | last post by:
Good Day To all, When i am declaring a array for e.g char ....it means i am declaring array of 45 characters each of which has a maximum,minimum value limit or range...for example in...
7
by: bowlderster | last post by:
Hello,all. I want to get the array size in a function, and the array is an argument of the function. I try the following code. /*************************************** */ #include<stdio.h>...
5
by: desktop | last post by:
I have a function that takes two pointers to an array. The first point to the first element while the other points to the last element. int nums = { 1, 2, 3, 4, 5, 7, 8, 9}; int* result; int...
33
by: Adam Chapman | last post by:
Hi, Im trying to migrate from programming in Matlab over to C. Im trying to make a simple function to multiply one matrix by the other. I've realised that C can't determine the size of a 2d...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.