XBase.Prev

Syntax:

Prev()

Returned value:

Type: Boolean.
True indicates the previous record was received; otherwise it is False.

Description:

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).

Availability:

Thin client, server, thick client, external connection.

Example:

// Calculation sum in the COST field
SumTotal = 0;
While 
True Do
    SumTotal = SumTotal + xB.COST;
    If 
Not xB.Prev() Then
        Break;
    EndIf
;
EndDo
;


    

1C:Enterprise Developer's Community