Count marked records and fill count into another field
PUBLIC com_Count SET TALK OFF COUNT FOR !EMPTY(x) TO com_Count REPLACE field1 WITH ALLT(STR(com_Count)) FOR !EMPTY(x) |
COUNT FOR "X" $ x TO com_Count REPLACE field1 WITH ALLT(STR(com_Count)) FOR "X" $ x |
If field1 is a Numeric type field, change the last line of the command to read:
REPLACE field1 WITH com_Count FOR !EMPTY(x) |