checkemptyselection

The checkemptyselection statement notifies the user if a selection failed, and reverts to the previous selection.


Parameters

No parameters.


Description

This statement checks to see if a selection failed. If it did fail, it notifies the user and reverts to the previous selection. It is designed to be used after the select or selectwithin statements, like this:

startdatabasechange "allrecords","Undo Selection"
select somefield = somevalue
checkemptyselection

To use this statement, the procedure must start with a startdatabasechange statement, as shown above. If it doesn’t, the checkemptyselection function may undo some other operation.

Note: Instead of using the checkemptyselection statement, we strongly urge you to consider using the newer safeselect and safeselectwithin statements.


See Also


History

VersionStatusNotes
10.0NewNew in this version.