Skip to content

Record Number

Purpose

Returns the number of the record from the data-set.

Example

If the following code is used for the background color of the details section, you give a different color to the even and uneven output lines in the report.

if mod ({&Record Number}, 2) > 0 then
    return rgb(192,192,193)
else
    return drNone
end

Notes

  • Record Number is not the same as the "recnum" column in recnum tables. It is the row number from the filtered and sorted result set.