Navigation:  ABC Library Reference > IncrementalLocatorClass > IncrementalLocatorClass Methods >====== SetAlerts (alert keystrokes for the LIST control:IncrementalLocatorClass) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

SetAlerts( control ), VIRTUAL

blk2blue.jpg

SetAlerts Alerts appropriate keystrokes for the specified LIST control.
control An integer constant, variable, EQUATE, or expression that resolves to the control number of the LIST or COMBO control displaying the data to be searched.

The SetAlerts method alerts appropriate keystrokes for the specified LIST control.

Implementation: The SetAlerts method alerts the backspace key and the space key.

Example:

MyBrowseClass.SetAlerts PROCEDURE                 !alert keys for browse object

I BYTE,AUTO

CODE

LOOP I = 1 TO RECORDS( SELF.Sort )               !for each sort order

 GET( SELF.Sort, I )

 IF ~ ( SELF.Sort.Locator &= NULL )              !if locator is present

  SELF.Sort.Locator.SetAlerts( SELF.ListControl )! call Locator.SetAlerts method

 END

END