PDA

View Full Version : Cursor, equivalent of found()



phabio
2018-03-12, 15:51
Hi all,
when I use the cursor, eg:


ca = cursoradapter("myVT")
ca.setNamedParameter("pkwhere", "someValue")
ca.setnamedparameter("defaultnamedparameters", "0")
ca.cursorRefresh()


How can I test records found?

Ok, I can use:
reccount("myVT")

but come like:
ca.reccount() is better..

thanks
Fabio

phabio
2018-03-12, 15:53
PS: CursorAdapter...

barrymavin
2018-03-13, 00:31
You Can do it this way:

reccount( ca.alias )

but to simplify it i have added ca.reccount() to the CursorAdaptor class.

phabio
2018-03-13, 03:10
Barry... the best!

thanks
Fabio