Navigation: ABC Library Reference > EntryLocatorClass > EntryLocatorClass Methods >====== TakeAccepted (process an accepted locator value:EntryLocatorClass) ====== | ![]() ![]() |
TakeAccepted, DERIVED
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





