removeunselected

The removeunselected statement deletes all unselected records from the database.


Parameters

No parameters.


Description

The removeunselected statement deletes all unselected records from the database. (Unselected records are invisible, but they are still part of the database and take up space.) Once they are removed, the records cannot be recovered unless you have previously saved them on the disk. The removeunselected statement will not ask the user to confirm before deleting the records; it assumes that the procedure writer knows what he or she is doing. This statement has the same effect as the “Delete Unselected Records” menu item.

This example deletes all records with Date prior to the current year.

select Date => year1st(today())
removeunselected

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.