Link Search Menu Expand Document

FlexRow.MovePrev Method

Explanation Point to the previous line.
Faster than the FlexView.GetRow (n) method when returning to the row to be pointed to.
If the InvalidState property is $ TRUE, the exception EXT-12 is raised.
Call format var ret = row.MovePrev( )
Return value Returns true if it was successfully moved.
Returns false if it cannot be moved.
Arguments None
Exception EXT-12 Invalid accessor
Example of use
    var row = FlexView1.GetRow();
    var key = null;
    var sum = 0;
    while (!row.End) {
        if (key != null && key != row.keyItem) {
            row.MovePrev();
            row.subTotal = sum;
            row.MoveNext();
            key = row.keyItem.ValueOf();
            sum = 0;
        }
        row.MoveNext();
    }
    row.MovePrev();
    row.subTotal = sum;
    
Related item MoveNext method