Home All Groups Group Topic Archive Search About
Author
24 May 2006 9:28 AM
SAM
HAI ALL
I AM A STUDENT AND NEW TO WEB DEVELOPMENT
I AM TRYING TO CREATE A WEB SITE
IT REQUIRES STORING & ACCESSING ARRAY IN SEESION.

WHILE RETREIVING ARRAY FROM THE SESSION AND USING IT I GET

"SCRIPT OUT OF RANGE" ERROR.

CAN ANYBODY PLEASE HELP ME TO OVERCOME THIS ERROR.

THANK YOU
SAM

*** Sent via Developersdex http://www.developersdex.com ***

Author
24 May 2006 12:14 PM
Cowboy (Gregory A. Beamer)
You are asking for an item that is not in the collection. Most likely you
have something like this (ASP.NET, not ASP):

string[] stringarray = { "1","2","3" }

for(int i=1;i<4;i++)
{
}

As soon as you hit the i=3 condition, you are out of range. Yes, it is a bit
different in ASP, but the result is the same. Arrays start at 0 (unless you
purpose them different, which is allowed in VB with explicit declaration,
not VBScript) and end at length - 1.

Without seeing your code, I cannot correct it.

ALSO, COULD YOU USE SOME SMALL LETTERS NEXT TIME?

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
Show quote
"SAM" <s***@gsolution.com> wrote in message
news:uBMiuRxfGHA.4880@TK2MSFTNGP03.phx.gbl...
> HAI ALL
> I AM A STUDENT AND NEW TO WEB DEVELOPMENT
> I AM TRYING TO CREATE A WEB SITE
> IT REQUIRES STORING & ACCESSING ARRAY IN SEESION.
>
> WHILE RETREIVING ARRAY FROM THE SESSION AND USING IT I GET
>
> "SCRIPT OUT OF RANGE" ERROR.
>
> CAN ANYBODY PLEASE HELP ME TO OVERCOME THIS ERROR.
>
> THANK YOU
> SAM
>
> *** Sent via Developersdex http://www.developersdex.com ***

AddThis Social Bookmark Button