on 11/21/00 3:14 PM, Mark Connor at [EMAIL PROTECTED] wrote:
> <CFLOOP QUERY="GetValidId">
> <!--- this isdefined does not work --->
> <cfif isdefined("#form.#id##")>
> <cfset idlist = idlist & '#id#,'>
> </cfif>
> </CFLOOP>
> How do I write the isdefined to make it work? (every thing I've tried
> throws an error.) Thank you!
Try this:
<CFLOOP QUERY="GetValidId">
<cfif isdefined("#evaluate('form.'&id)#")>
<cfset idlist = listappend(idlist,'#id#'>
</cfif>
</CFLOOP>
And then you no longer need the comma stripping function.
--
Rob Keniger
big bang solutions
<mailto:[EMAIL PROTECTED]>
<http://www.bigbang.net.au>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists