XBase.Prev
Prev()
Type:
Boolean.
True indicates the previous record was received; otherwise it is
False.
Positions the object in the previous record. Depending on whether or not the current index is set, positioning takes place either in decreasing order by record number, or in decreasing order by the current index expression value (if the index was created with the "Descending" flag set, the object will be moved in ascending order).
Thin client, server, thick client, external connection.
// Calculation sum in the COST field SumTotal = 0; While True Do SumTotal = SumTotal + xB.COST; If Not xB.Prev() Then Break; EndIf; EndDo;
|