You don't really need to specify any numbers. If the query returns any
rows, then it's true. If it returns none, it is false. So, this would
suffice:
<cfif xy.RecordCount>
True
<cfelse>
False
</cfif>
Todd Ashworth
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 27, 2000 10:40 AM
Subject: What is xy.recordcount ?
| Hi List, I have a query (xy) where I want to make a cfif-question on
| xy.recordcount.
| What would xy.recordcount be if xy.recordcount would throw no record ?
| I assumed "0". But it seems to be somehow undefined.
| Ideas why and what it is ?
| Should I prefer the "Count"-Statement from SQL for this ?
|
| Uwe
|
| Mail: [EMAIL PROTECTED]
| Web: www.sdsolutions.de
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists