I have a SQL query on my CF page that returns a certain number of recordsets. Now, I am trying to get a cfloop to execute a number of SQLQuery.RecordCount / 2 times (-> do a loop for every 2 records found)
I have set up everything as follows:
<cfset NumberOfRecords=SQLQuery.RecordCount>
...
<cfloop index="Counter" from="0" to="NumberOfRecords">
I have tried many different alterations to try to get this to work, but every time I get this error message:
"Attribute validation error for tag CFLOOP.
The value of the attribute TO is invalid. The value cannot be converted to a numeric because it is not a simple value.Simple values are booleans, numbers, strings, and date-time values."
Any Ideas on how I can get CF to see that the variable NumberOfRecords is actually a number value?
Dan...
I have set up everything as follows:
<cfset NumberOfRecords=SQLQuery.RecordCount>
...
<cfloop index="Counter" from="0" to="NumberOfRecords">
I have tried many different alterations to try to get this to work, but every time I get this error message:
"Attribute validation error for tag CFLOOP.
The value of the attribute TO is invalid. The value cannot be converted to a numeric because it is not a simple value.Simple values are booleans, numbers, strings, and date-time values."
Any Ideas on how I can get CF to see that the variable NumberOfRecords is actually a number value?
Dan...