Next - cUIObject

Moves the focus to the next object in the tab order when the Tab key is pressed

Type: Procedure

Parameters: None

Syntax
Procedure Next 

Call: Send Next


Description

Next moves the focus to the next object in the tab order when the Tab key is pressed.

Next and Previous are excellent methods for augmenting keyboard navigation.

Sample

This sample shows how to augment formal forward navigation. Assuming that the next object in the tab order is a data entry object (DEO) for an address table column (e.g. a dbForm) and another object further along in the tab order is a DEO for a city column, if the pbSkipAddress property is True, the address object is skipped by sending Activate directly of the oCustomer_City object. If the address DEO should not be skipped, Next is forward sent, so that the superclass code for Next is executed, which is to navigate forward to the next focusable object in the tab order.

Procedure Next
    Boolean bSkipAddress

    Get pbSkipAddress to bSkipAddress

    If (bSkipAddress) ;
       Send Activate of oCustomer_City
    Else ;
       Forward Send Next
End_Procedure