Try:


   <cfloop index="i" from="1" to="3">
     <cfif Evaluate("form.field#i#") is not "">
       <cfoutput><br>form.field#i#: OK </cfoutput>
     </cfif>
   </cfloop>



At 3:29 PM +0200 5/12/2000, Frederic COLLIN wrote:
>Hi,
>
>I'd like to evaluate in a CFLOOP 3 fields named
>field1 field2 field3 from a cfform.
>I'd like to create dynamically the name of a variable.
>
>What's wrong with the following code :
>
><cfloop index="i" from="1" to="3">
>     <cfif #form.field#i# is not "">
>         <cfoutput> OK <cfoutput>
>     </cfif>
></cfloop>
>
>
>THANKS
>
>------------------------------------------------------------------------------
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_tal 
>k or send a message to [EMAIL PROTECTED] with 
>'unsubscribe' in the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to