| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| 30 | 31 | 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 | 1 | 2 | 3 | 4 |
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
4 weeks 4 days ago
18 weeks 5 days ago
23 weeks 5 days ago
26 weeks 3 days ago
26 weeks 5 days ago
29 weeks 3 days ago
30 weeks 5 days ago
31 weeks 2 days ago
31 weeks 3 days ago
31 weeks 4 days ago