Finds the first record in a table based on the current key and
filter.
|
[Ok :=] RecordRef.FINDFIRST
|
Parameters
- RecordRef
-
Type: RecordRef
The recordref that refers to the table in which you want to find
a record.
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).
Property Value/Return Value
Type: Boolean
true if the record was found; otherwise,
false.
If you omit this optional return value and if the record cannot
be found, a run-time error occurs. If you include a return value,
it is assumed that you will handle any errors.
Remarks
Example
This example shows how to use the FINDFIRST
function.
|
Copy Code |
// Read the first record only.
IF SalesSetup.FINDFIRST THEN BEGIN
ConfigurePost(SalesSetup);
END;
|
See Also