Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there any "end of file" function in CF

Status
Not open for further replies.

ziwacky

Programmer
Jun 27, 2000
43
US
Hi guys,

Hey, is there any "end of file" function in CF. Or is there any other way to know that my recordset has reached the end, and that I don't know of?

I haven't been able to come up with anything. Any ideas?
 
You shouldn't need an EOF function (good thing 'cause there isn't one that I am aware of) so... what are you trying to accomplish?

If you are just looping through a recordset (like a query?) you can ask it how big it is up front... like.

#YourQuery.RecordCount# There are similiar functions that return the length of lists,structures, and arrays so you should be covered.
 
you can compare the #yourquery.CurrentRow# variable with #yourquery.RecordCount#
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top