[thelist] ColdFusion function for dynamic variable name?

Raymond Camden rcamden at allaire.com
Tue Jul 10 13:12:40 CDT 2001


You can treat form fields like structures, so to check a dynamic form field,
you can do it very simply...

<CFSET Dyn = "oldField#X#">
<CFOUTPUT>#Form[Dyn]#</CFOUTPUT>

Ray Camden

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Plunkett, Matt
> Sent: Tuesday, July 10, 2001 1:55 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] ColdFusion function for dynamic variable name?
>
>
> Howdy-
>
> Is there a function in ColdFusion that will let me construct
> variable names
> from strings and then use them as variables?  Hopefully the code
> below will
> help:
>





More information about the thelist mailing list