Thanks Mik, that did it.

On 3/13/07, Mik Muller <[EMAIL PROTECTED]> wrote:
>
> This is that age-old problem of cfloops.
>
> There are two ways of doing it, the easiest of which to remember is simply
> to set a temporary local variable outside the loop to compare
>
> <select name="StatusID_#TaskID#">
>   <cfset temp = getTimeLinesRet.Status_ID>
>   <cfloop query="getStatusRet">
>     <option value="#Status_ID#"
>     <cfif temp IS getStatusRet.Status_ID >Selected</cfif>
>     >#Status#</option>
>   </cfloop>
> </select>
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272546
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to