Skip to main content

Multi-Commands to Track Incoming and Outgoing Data

Overview

Use the .Inc() and .Dec() multi-commands to track incoming and outgoing data.

Details

The .Inc() multi-command is used to increase a number while the .Dec() multi-command will decrease a number. 

Use the following example as template. On this test form there are two buttons, one to increase and the other to decrease. There are also two TIEREdits, one used as the increase/decrease amount, the other to display the current total/balance. The beginning total is 27, which will increment by one digit, positively or negatively, depending on your preference. Your increment can be any amount designated by the designer, and the total will come from a field saved in a table.

tier-increase-decrease01.png

Double click on the buttons to see the syntax used by these multi-commands. Remember that all multi-commands are case sensitive.

In the following example, Value is the name of the Total TierEdit and Number is the name of the Increments Of TierEdit. If your syntax is correct, the amount will increment in the desired direction.  

tier-increase-decrease02.png tier-increase-decrease03.png