User Tools

Site Tools


takelocate_a_virtual_to_process_each_sort_.htm
Navigation:  ABC Library Reference > BrowseClass > BrowseClass Methods >====== TakeLocate (a virtual to process each sort) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TakeLocate, VIRTUAL

blk2blue.jpg

The TakeLocate method sets the active sort and filter criteria, and enables any necessary popup activity.

Implementation:

The BrowseClass.TakeEvent method calls the TakeLocate method for each Locate event.

Example:

BrowseClass.TakeLocate PROCEDURE

CurSort USHORT,AUTO

I USHORT,AUTO

 CODE

 IF ~SELF.Query&=NULL

  IF SELF.Query.Ask()

   DO SS ! Set Sort.

  END

! Remap Right-click popup.

  IF SELF.Query.QkSupport AND ~(SELF.Popup &= NULL)

   SELF.Query.SetQuickPopup(SELF.Popup,SELF.QueryControl)

  END

 END

SS ROUTINE

 IF SELF.QueryShared

  CurSort = POINTER(SELF.Sort)

  LOOP I = 1 TO RECORDS(SELF.Sort)

   PARENT.SetSort(I)

   DO SF

  END

  PARENT.SetSort(CurSort)

 ELSE

  DO SF

 END

 SELF.ResetSort(1)

SF ROUTINE

 SELF.SetFilter(SELF.Query.GetFilter(),'9 - QBE')

 IF SELF.QueryResult

  SELF.QueryResult{PROP:Text} = SELF.Query.GetFilter()

 END

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