QueryResultSelection.Next

Syntax:

Next()

Returned value:

Type: Boolean.
True - next record is selected; False - end of the selection is reached.

Description:

It obtains the next record of the query result. To tab through the query result, you have to call this method up for positioning at the first element after getting the selection, and then keep calling it up until the False value is returned.

Availability:

Server, thick client, external connection, Mobile application (server).

Note:

If all records with the field value equal to the value set during the previous call of the NextByFieldValue method are selected after the records are obtained, then an attempt to obtain records with the field value different from the one obtained by the NextByFieldValue method will return the False value.

Example:

While Selection.Next() Do
    ...
EndDo
;


    

1C:Enterprise Developer's Community