Equinox Online Help - Language Reference - A to Z

Home

GroupPreviousRecord

Applies to
SyntaxGroupPreviousRecord GroupnameExpression
Action[Statement] Allows you to specify a group via the GroupnameExpression parameter rather than defaulting to the current group.
ScopeOnly usable in forms.
Notes

It finds the previous record to the current one in the specified group. After the statement is executed, the SysError system workarea is set to one of the following values:

  • 0 The statement was executed successfully.
  • 1 An error occurred.
CategoryRecord navigation
See Also FirstRecord, GroupFirstRecord, GroupLastRecord, GroupNextRecord, GroupSkipRecord, LastRecord, NextRecord, PreviousRecord, SkipRecord
Example

This method selects an index which is based on the customer name, finds the last record and then goes to the previous one.

GroupSetIndex "STOCK", StockCode
GroupLastRecord "STOCK"
GroupPreviousRecord "STOCK"