| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| 29 | 30 | 1 | 2 | 3 | 4 | 5 |
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 | 1 | 2 |
When is a structure not a structure ?
Submitted by Falken on Wed, 06/08/2008 - 14:30.
Question: When is a ColdFusion structure not a structure, as checked by isStruct() ?
Answer: When the structure is a CFC !
In ColdFusion, isStruct() returns true for structures and CFCs. If you really want only structures, you need to add 'not isObject()' too.
Brian Kotek confirms that "CFCs can also be treated as structures for most purposes .... StructKeyExists() [etc]".

Recent comments
1 week 5 days ago
1 week 6 days ago
3 weeks 5 days ago
3 weeks 5 days ago
9 weeks 5 days ago
10 weeks 1 day ago
11 weeks 6 days ago
11 weeks 6 days ago
11 weeks 6 days ago
12 weeks 2 days ago