Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
kruse #1
Dynamically variable assignment
The following code does not work.
<CFPARAM Name="FieldList" Default="FirstName,LastName,CGId,EmpId">
<CFIF IsDefined("Form.NewSearch") AND Form.NewSearch>
<CFLOOP LIST="#FieldList#" INDEX="CurrentItem">
<CFSET Evaluate("Form." & CurrentItem) = "">
</CFLOOP>
</CFIF>
Is it possible to assign a variable - variableName a value?
kruse Guest
-
#39496 [NEW]: $_SESSION assignment to variable stops register data
From: bartek at cpu-zeto dot com dot pl Operating system: Windows XP PHP version: 5.2.0 PHP Bug Type: Session related Bug... -
Can Flash display a CF variable value dynamically?
Title pretty much sums it up. Want my flash movie to include text pulled from a CFQUERY. I know there is a "dynamic text" option in the property... -
Left side of assignment operator must be variable or property
Below got error: for (i in _parent.arrQues){ "text"+i = _parent.arrQues; } How can I correct it? Tks for help! -
Variable assignment question
In the programming language I use at work, we're able to do the following type of variable assignment: A = B = C = 10.0 I haven't found any... -
dynamically substituting variable name
hi, I want to dynamically substitute a variables name. I know this from PHP where you can have somthing like ${$foo} how can I do this in... -
mxstu #2
Re: Dynamically variable assignment
Try
<CFPARAM Name="FieldList" Default="FirstName,LastName,CGId,EmpId">
<!--- assumes form.NewSearch is a true / false value?? --->
<CFIF IsDefined("Form.NewSearch") AND Form.NewSearch>
<CFLOOP LIST="#FieldList#" INDEX="CurrentItem">
<CFSET Form[CurrentItem] = "">
</CFLOOP>
<cfdump var="#form#">
</CFIF>
mxstu Guest
-



Reply With Quote

