Yep
-Original Message-
From: Mauricio Giraldo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 12:56 PM
To: CF-Talk
Subject: Efficient way to handle undefined variables
Yes, you can
so... for the example in question (xml optional info) you would go something
like
That's what cfparam is for, isn't it?
-Original Message-
From: Rich Z [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 3:54 PM
To: CF-Talk
Subject: Efficient way to handle undefined variables
What is the best/most efficient way to handle a scenario where you're
populating
That's what cfparam is for, isn't it?
-Original Message-
From: Rich Z [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 3:54 PM
To: CF-Talk
Subject: Efficient way to handle undefined variables
What is the best/most efficient way to handle a scenario where you're
populating
sorry for the double post... clocked post by error
That's what cfparam is for, isn't it?
can you cfparam dynamically named vars?
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription:
I don't see why not. The variable name passed to cfparam is just a
string. Dynamically build the string. Have you tried it?
J
-Original Message-
From: Mauricio Giraldo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 11:47 AM
To: CF-Talk
Subject: Efficient way to handle
Yes, you can
-Original Message-
From: J E VanOver [mailto:[EMAIL PROTECTED]
Sent: 02 September 2003 20:01
To: CF-Talk
Subject: RE: Efficient way to handle undefined variables
I don't see why not. The variable name passed to cfparam is just a
string. Dynamically build the string
Yes, you can
so... for the example in question (xml optional info) you would go something like this
pseudocode? :
cfloop for all nodes in xml
cfparam name=#nodename##nodenumber# default=
/cfloop
then you could safely use those variables in cfif ?
- mga
so... for the example in question (xml optional info) you
would go something like this pseudocode? :
cfloop for all nodes in xml
cfparam name=#nodename##nodenumber# default=
/cfloop
then you could safely use those variables in cfif ?
You could, but why not just test for the existence
I'm a bit confused about how you're building your variable names, as well.
I dunno. I'm just trying to understand Rich Z's issue altogether.
: )
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription:
Yea, I'd either use cfparam ... or sometimes it can be easier to use
structappend(struct,struct2,false) for this...
isaac
-- Original Message --
From: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sep 02, 2003 08:06 PM
Subject: RE: Efficient way to handle undefined variables
What is the best/most efficient way to handle a scenario where you're
populating variables from other variables that may or may not exist. If
they don't exist, an empty string should be assigned. I wrote a little
function to do this with a simple if statement inside:
If (isDefined(inVal)
{
11 matches
Mail list logo