Skip to main content

TabStop Conditions

Overview

Use the TabStop Condition property on a control to create ‘rules’ that determine if tabbing will stop on a particular control or not.

Details

In the example shown below, there are four TierEdits named TierEdit1 through TierEdit4. These are the only four controls on the form that have TabStop selected, and the OnActivate button has a [BeforeAction] of TierEdit1.SetFocus, so when the form is opened, the cursor is already in the TierEdit1 box.

The third TierEdit (TierEdit3) has the TabStopCondition property set as in the following example.

(:TierEdit2<>””) 

This ‘rule’ will skip TierEdit3 if TierEdit2 is empty.

tier-tabstop.png

Additionally, you could add a Calculation on TierEdit3 as shown in the following example.

(IfThen(:TierEdit2="","",:TierEdit3)

This way if TierEdit2 is cleared, TierEdit3 will also clear.

To demonstrate this, enter data in TierEdit1, press Tab, don’t enter data in TierEdit2, and press Tab again. The TierEdit3 is skipped and the cursor is at TierEdit4. Press Tab again and you are back to TierEdit1, press Tab, enter data in TierEdit2, press Tab, and you will tab to TierEdit3.

If you clear the TierEdit2, TierEdit3 should also clear and tabbing should skip it again.

note-3L.png The TabStop conditions are similar to validations and follow the same format. 

 

  • Was this article helpful?