ASP, VBSCRIPT

  • Thread starter Thread starter SAM
  • Start date Start date
S

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
 
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!
*************************************************
 
Back
Top