When Calculated Fields are Calculated
Merely adding a field to a table and giving it a field rule calculation expression does not fill the field with values. A field rule does not calculate until one of three events occurs.
A record is added to the table
One of the fields in the calculation is changed or edited in a record
Run the Re-Evaluate rules function.
To re-evaluate field rules for a table:
Select the table in the Table/Sets tab of the Control Panel.
Select Table > Utilities > Recalculate Calc Fields (Field Rules).
dim tbl as P tbl = table.open(tablename) tbl.Recalc_CalcFields() tbl.close()