Testing for pk in foundset

Other than running a loop, is it possible to test the current foundset whether a particular primary key is present?

What for?

If you want your pk to be the one selected, try with:

foundset.selectRecord(pk_id)

If you want to prevent to create a record with a key that already exist, look at: http://www.servoymagazine.com/home/2004 … uplic.html

If you do not want the record with the pk_id in your foundset, then probably you can combine the foundset.selectRecord(pk_id) with the controller.omitRecord() if the primary key found equals pk_id