Testing for no records

What is the best way to test if there are no records in a table, before attempting a seach on the table.

search on the table…

or if you already have a foundset then ask for the getMaxRecordIndex()
but then you have to be sure that that isn’t a search already… (that returned nothing)

functional_demo.servoy (9.28 KB)