The syntax for SETAUTOCALCFIELDS is as follows:
[BooleanField := ] Record.SETAUTOCALCFIELDS ( FlowField1 [, FlowField2] [, FlowField3]...)
When SETAUTOCALCFIELDS for a table is inserted in code in front of record retrieval, the specified FlowFields are automatically calculated as the record is read. This is more efficient than performing CALCFIELDS on the FlowFields after the record has been read.
If we want to end the automatic FlowField calculation to a record, call the function without any parameters:
[BooleanField := ] Record.SETAUTOCALCFIELDS()
An automatic FlowField calculation equivalent to SETAUTOCALCFIELDS is automatically set for the system record variables, Rec and xRec.