RE: Arrays and CFIF

2000-06-29 Thread Colin Robinson
Have you considdered using a Structure in stead of an array? You can then i believe use StructKeyExists to test with a key has been created -Original Message- From: Chris Farrugia [mailto:[EMAIL PROTECTED]] Sent: 29 June 2000 02:05 To: [EMAIL PROTECTED] Subject: Arrays and CFIF I have

Arrays and CFIF

2000-06-28 Thread Chris Farrugia
I have an array that catalogues a bunch of products and categories... for instance, ProductIDArray[1][1] is "Case" and ProductIDArray[1][2] could be "Mid Tower." With that in mind, this is for a system configurator... now, there are checkboxes for SOftware... if they check one, then it goes

Re: Arrays and CFIF

2000-06-28 Thread Mark Ireland
This error means literally what it says. The 21st element never got added! Once there is something there your code might still fail :) At 09:04 PM 28/06/00 -0400, you wrote: How can I do that? The code I'm trying is: CFIF len(#ProductIDArray[21][2]#) IS NOT 0 This comes back with the

Re: Arrays and CFIF

2000-06-28 Thread GE
Hello Chris, The error message is pretty straight forward: It is telling you that array index value 21 does not exist. It is telling you that you have index values of 1 through to and including 20. So before you can check for a value you must create the array element. What you could do is

Re: Arrays and CFIF

2000-06-28 Thread Sharon DiOrio
The best way to diagnose an error like this is to display the array. Check out a custom tag called cf_objectdump. It will show you an array, query, or structure. Makes working with complex data structures *much* easier. Or, if you have Spectra, may I also recommend a custom tag that is part