simple record count

I have a search that returns a certian amount of reords. I realize the results are in 200 record chunks. I want to display the entire count of records regardless of haw many are showing in the listing. This works well if there are less then 200 :

created element ~> %%maxRecordIndex%%

I have tried: globals.recordcount = foundset.getSize();

but get the following error : “record” is not defined.

What am I missing?

Thanks,
Erich

see databaseManager.getFoundSetCount()

Thank you

Bare in mind that, in case you will have many many records, this will cost time/be expensive to use! If you can avoid using it you should!..