Welcome! Log In Create A New Profile


HFilter no of records returned

Posted by Mark Crichton 
HFilter no of records returned
March 17, 2019 02:33AM

Is there an easy way to get the number of records returned by HFilter?
Re: HFilter no of records returned
March 18, 2019 06:27AM
Hello Mark

Hfilter() is just the setup and then you have to issue HReadFirst() to find the first match.
After that I don't think there is any way other than cycling through the data and counting each time you issue HReadNext()

I would try a View. I don't think many people use them but they are very fast and extracting the count is simply HnbRec(Viewname) , plus you can then use the data in the view as if it is file. A query would do the same but a view is simpler as it is just a single line of code.

Re: HFilter no of records returned
March 18, 2019 09:07AM
Hi Al
I think you are right. I use views a lot, and always find them easier to work with.
Pity though would be useful if hnbrec work with Hfilter.

Your Email:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.