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
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
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
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
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
5 matches
Mail list logo