Support 805.461.7300
Sales
Our Technology. Your Success.

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)

For the sake of looking at a specific value in a field, you could change the last two lines of the command to:
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)

« Back to Commands

"You should know and I have told this to many of the people I have spoken to on the phone over the years. All of your employees are always super helpful, knowledgeable and professional every time I need to call in. I always have my questions answered or my issue resolved. Thanks to you and your staff!"
A.B., Long Island City, NY