--- Bangs Head on Desk ---
Duh!
-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 13, 2007 5:17 PM
To: CF-Talk
Subject: Re: Structures... How Do I properly write this?
As a StructKeyIsEmpty wouldn't be a key :-)
This e-mail is from
I fixed my typo but I'm still getting errors with the code below. The error
I now get reads: Element 1 is undefined in a CFML structure referenced as
part of an expression.
I'm sure this is a simple fix... What am I missing?
-Original Message-
Basically, I have nested structures. I want
Use this
cfloop from=1 to=#ArrayLen( xmlcontent.message.items.item )# index=x
cfif NOT StructKeyExists( stWSSB_Tickler, x )
cfset stWSSB_Tickler[x] = StructNew() /
/cfif
cfif ( NOT StructKeyExists( stWSSB_Tickler[x], 'tickler' ) )
OR
( StructKeyExists(
Basically, I have nested structures. I want to check if the nested structure
exists first. If it does not exist, then I'll create it. Then I want to
check if the nested structure's tickler value is Y. Obviously, my cfif
logic is not correct. Thanks!
cfif NOT isDefined(stWSSB_Tickler)
cfif NOT structKeyIsEmpty(stWSSB_Tickler[x])
StructKeyIsEmpty is not a function, I think you want StructIsEmpty.
-- Josh
~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade see new
Sent: Wed Jun 13 22:16:34 2007
Subject: Re: Structures... How Do I properly write this?
cfif NOT structKeyIsEmpty(stWSSB_Tickler[x])
StructKeyIsEmpty is not a function, I think you want StructIsEmpty.
-- Josh
~|
Create robust
6 matches
Mail list logo