nextmatch

The nextmatch statement locates the next visible record in the active database for which the condition specified in the most recent Find statement is true.


Parameters

No parameters.


Description

This statement scans the active database down from the current record and locates the next visible record for which matches the condition specified by the most recent Find statement. This statement can only be used in conjunction with the Find, FindBackwards, FindBelow or FindAbove statements.

This example finds the second record for John Smith in the database.

find Customer = "John Smith"
nextmatch

If no records below the current record meet the specified criteria Panorama will leave the active record where it was before the NextMatch statement executed.

The NextMatch statement is very similar to the FindBelow statement. However, the NextMatch statement doesn’t allow you to specify a new search condition. Instead, it uses the search condition established by the most recently used Find, FindBackwards, FindBelow or FindAbove statement.

The NextMatch statement always searches below the current record, even if the most recent search was done with the FindBackwards or FindAbove statements. If you want to search above the current record, use the PreviousMatch statement.

In previous versions of Panorama (version 6 and earlier) this statement was called Next. For compatibility with existing databases, Next will still work.


See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, however it is now called NextMatch instead of Next. For compatibility with existing databases, Next will still work.