> I find two things wrong with the statement. First, the
equality sign right
> after cfset is no good.
Why not? If one is not interested in the returned result of
the operation,
why bother storing it in a variable?
With querySetCell() the object of the exeercise is to set the
value in the
passed-in query, not to capture whether the operation was a
success.
I can't say I have ever come across a situation in which
querySetCell()
returns false.
> <cfset isCellSet = QuerySetCell(ErrorQuery, m,
netNoOfHeads)>
What is isCellSet subsqeuently used for? Not necessarily in
this code, but
say for example some of your code which would use
querySetCell().
I will agree that the original code is a bit difficult to
follow. I'd just
use an equivalent <cfif> statement rather than an iif()
function call,
rather thab horse around setting all those extra variables as
per your
example, though. They just seem like clutter rather than
adding any
clarify. But, you know, each to their own.
--
Adam