User Tools

Site Tools


takeacceptedlocator_apply_an_accepted_locator_value_.htm
Navigation:  ABC Library Reference > BrowseClass > BrowseClass Methods >====== TakeAcceptedLocator (apply an accepted locator value) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TakeAcceptedLocator, VIRTUAL

blk2blue.jpg

The TakeAcceptedLocator method applies an accepted locator value to the browse list–the BrowseClass object scrolls the list to the requested item.

Locators with entry controls are the only locators whose values are accepted. Other types of locators are invoked in other ways, for example, with alerted keys. Locator values are accepted whenthe end user TABS off or otherwise switches focus away from the locator's entry control.

The AddLocator method establishes locators for the browse.

Implementation:

The TakeAcceptedLocator method calls the appropriate LocatorClass.TakeAccepted method.

Example:

IF FIELD() = ?MyLocator                !focus on locator field

 IF EVENT() = EVENT:Accepted           !if accepted

  MyBrowse.TakeAcceptedLocator         !BrowseClass object handles it

 END

END

See Also:     AddLocator

takeacceptedlocator_apply_an_accepted_locator_value_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1