Re: Looping and CFIFs

2008-01-01 Thread Phillip M. Vector
That worked. Thanks. :) Dominic Watson wrote: > Ah, sorry I didn't test it! > > You will need to use: position[field][currentRow]. > > The currentRow is relative to the query that is being looped (with cfoutput > or cfloop) so you can use that instead of your count variable. > > Dominic > > >

Re: Looping and CFIFs

2008-01-01 Thread Dominic Watson
Ah, sorry I didn't test it! You will need to use: position[field][currentRow]. The currentRow is relative to the query that is being looped (with cfoutput or cfloop) so you can use that instead of your count variable. Dominic On 01/01/2008, Phillip M. Vector <[EMAIL PROTECTED]> wrote: > > Th

Re: Looping and CFIFs

2008-01-01 Thread Phillip M. Vector
Thanks.. When I do that, I get Complex object types cannot be converted to simple values. When I try the second solution, I get .. cannot convert the value of type class coldfusion.sql.QueryColumn to a boolean Any ideas? :) Dominic Watson wrote: > Hi Philip, instead of doing: > > > > D

Re: Looping and CFIFs

2008-01-01 Thread Dominic Watson
Hi Philip, instead of doing: Do: Also, and this is personal preference, you can treat the 1 or 0 values as booleans so you could also write it as: ... or ... Dominic On 01/01/2008, Phillip M. Vector <[EMAIL PROTECTED]> wrote: > > I'm trying to loop over a list of table columns and use

Looping and CFIFs

2008-01-01 Thread Phillip M. Vector
I'm trying to loop over a list of table columns and use the "selected" option on the select tag to set it yes or no based on the value.. But I can't seem to figure out how to do this as I can't indent a # within a # pair. Any ideas on how to make the check to see if it's 1 or 0 work? =