Hi,
There are two different ways to reference a structure, dot-notation
(struct.key) and associative-array notation (struct["key"]). The dot
notation usually works, unless the key starts with a numer. Then you need
to use associative-array notation. To use dot-notation like you want to,
try th
structure.substructure['#Evaluate("##x##")#'] ??
This should be better:
structure.substructure[x]
- Original Message -
From: "Tim Dempsey" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 7:39 AM
Subject: Structure notation
> Folks,
>
> Per
When structures where introduced in CF4.0, the manual did show both ways
of referencing. Both will work fine the same way.
-Original Message-
From: Tim Dempsey [mailto:[EMAIL PROTECTED]]
Sent: Friday, 24 August 2001 12:39 AM
To: CF-Talk
Subject: Structure notation
Folks,
Perhaps the
> I couldn't say structure.substructure.#Evaluate("#x#")
You could say:
evaluate("structure.substructure." & x)
> -Original Message-
> From: Tim Dempsey [mailto:[EMAIL PROTECTED]]
> Sent: 23 August 2001 15:39
> To: CF-Talk
> Subject: Structure notation
>
>
> Folks,
>
> Perhap
> Is this something new or has it always been available. Why doesn't the CF
> manuals or help mention it? Is there any danger in using object notation.
It's always been like that. The [] notation is best for dynamic struct
access, ie:
This would output Struct.Boo. If you did Struct.Key, it w
5 matches
Mail list logo