User Tools

Site Tools


takeaccepted_process_an_accepted_locator_value_entrylocatorclass_.htm
Navigation:  ABC Library Reference > EntryLocatorClass > EntryLocatorClass Methods >====== TakeAccepted (process an accepted locator value:EntryLocatorClass) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TakeAccepted, DERIVED

blk2blue.jpg

The TakeAccepted method processes the accepted locator value and returns a value indicating whether the browse list display should change.

A locator value is accepted when the end user changes the locator value, then TABS off the locator control or otherwise switches focus to another control on the same window.

Implementation:

The TakeAccepted method primes the FreeElement property with the entered search value, then returns one (1 or True) if a new search is required or returns zero (0 or False) if no new search is required.

Return Data Type:     BYTE

Example:

MyBrowseClass.TakeAcceptedLocator PROCEDURE

CODE

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

 IF SELF.Sort.Locator.TakeAccepted()      !if locator value requires a search

  SELF.Reset(1)                !reposition the view

  SELECT(SELF.ListControl)          !focus on the list control

  SELF.ResetQueue( Reset:Done )        !reset the browse queue

  SELF.Sort.Locator.Reset           !reset the locator USE variable

 END

END

See Also:     FreeElement

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