You replaced a query named citysearch with a simple variable called
citysearch.  Therefore, citysearch.recordcount ceased to exist.  If you
change line 6 to <cfset variables.citysearch = "#citysearch.recordcount#">,
then citysearch.recordcount would still exist.

-----Original Message-----
From: Lee Fuller [mailto:[EMAIL PROTECTED]]
Sent: July 31, 2001 10:52 PM
To: CF-Talk
Subject: Recordcount/Query Strangeness..


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