shouldn't you uncomment the line
// Session("stest") = new Array();
if you are going to splice the array stest ?russell -----Original Message----- From: Peter Harrison [mailto:[EMAIL PROTECTED]] Sent: 25 July 2002 16:56 To: Dev@Lists. Cfdeveloper. Co. Uk Subject: [ cf-dev ] OT: please help! Importance: High Hi people Sorry for the OT. I'm tearing my hair out with this one. Copy and paste the following into splice.asp (or whatever): <%@LANGUAGE="JAVASCRIPT1.3"%> <% Session("stest") = new Array(); Session("stest")[0] = 0; Session("stest")[1] = 2; Session("stest")[2] = 4; Session("stest")[3] = 6; Session("stest").splice (1, 1); Response.Write (Session("stest")); %> View it, and it gives you "0,4,6" (this is good) Now comment out the lines as follows: <%@LANGUAGE="JAVASCRIPT1.3"%> <% // Session("stest") = new Array(); // Session("stest")[0] = 0; // Session("stest")[1] = 2; // Session("stest")[2] = 4; // Session("stest")[3] = 6; Session("stest").splice (1, 1); Response.Write (Session("stest")); %> and refresh the page in your web browser. I'd expect it to give "0,6", but instead it gives a 500 error: Error Type: (0x8000FFFF) Catastrophic failure Why can't I splice an existing Session array variable? HELP! Regards Peter Harrison Software Engineer and Consultant Professional Services Department NetShift, Kennet Side, Newbury, Berkshire, RG14 5PX, UK Tel: +44 (0) 1635 568 800 Fax: +44 (0)1635 568 850 [EMAIL PROTECTED] www.netshift.com Email Disclaimer - see http://www.netshift.com/disclaimer.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
