Finds a set of records in a table based on the current key and filter. FINDSET can only retrieve records in ascending order.

[Ok :=] RecordRef.FINDSET([ForUpdate][,UpdateKey])

Parameters

RecordRef

Type: RecordRef

The recordref that refers to the table in which you want to find the set of records.

If the record is found, it is returned in RecordRef and any FlowFields in the record are set to zero. You must update any FlowFields using CALCFIELDS Function (Record).

If the record is not found and if you omitted the return value, a run-time error occurs.

ForUpdate

Type: Boolean

Set this parameter to false if you do not want to modify any records in the set. Set this parameter to true if you want to modify records in the set.

If you set this parameter to true, the LOCKTABLE Function (RecordRef) is immediately performed on the table before the records are read.

UpdateKey

Type: Boolean

This parameter only applies if ForUpdate is true.

If you are going to modify any field value within the current key, set this parameter to true.

Expand imageProperty Value/Return Value

Expand imageRemarks

Expand imageSee Also