Maybe it would be a good idea if your count variable (citysearch) had a
different name to your query variable (citysearch)... ;)

I usually name queries q_something etc to avoid this sort of problem.

David Cummins

Lee Fuller wrote:
> 
> Ok.. Now I think I'm going nutz.  This is completely crazy.
> 
> When running this code...
> 
> 1: <cfif not isdefined("citysearch.recordcount")>
> 2:      <cfset citysearch = 0>
> 3:      NOT!
> 4:      <cfabort>
> 5: <cfelse>
> 6:      <cfset citysearch = "#citysearch.recordcount#">
> 7:    <cfoutput>#citysearch.recordcount#</cfoutput>
> 8:      <cfabort>
> 9: </cfif>
> 
> I get an error nearl line 7 column 15 "Error resolving parameter
> CITYSEARCH.RECORDCOUNT".  However, I *CAN* do a CFOUTPUT and view the
> "CITYSEARCH" var.
> 
> Even tho it HAS to go into the loop where the CITYSEARCH.RECORDCOUNT var
> is in existence to get to the part where it says it isn't in existence.
> Amazing.
> 
> And this (along with the query) is the ONLY code on the page.
> 
> Anyone have any ideas?
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to