User Tools

Site Tools


takecompletedinit_pre_process_selected_queue_.htm
Navigation:  ABC Library Reference > EditMultiSelectClass > EditMultiSelectClass Methods >====== TakeCompletedInit (pre-process selected queue) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TakeCompletedInit( selected ), VIRTUAL

blk2blue.jpg

TakeCompletedInit Pre-processes selected items for the EditMultiSelectClass object.
selected A LONG constant, variable or expression that identifies the number of selected records to process.

TakeCompletedInit is a virtual method that is called prior to processing selected values to the EIP column's USE variable. It simply passes the number of records that will be processed.

Implementation:

The TakeEvent method calls the TakeCompletedInit method. There is no internal code contained in the parent method.

Example:

   IF MSWindow.Response=RequestCompleted THEN

      IF SELF.Delimiter

         SELF.SerializeValue()

      END

      SELF.TakeCompletedInit(RECORDS(SELF.Selected))

      LOOP MSSelectedIndex=1 TO RECORDS(SELF.Selected)

       GET(SELF.Selected,MSSelectedIndex)

       SELF.TakeCompletedProcess(MSSelectedIndex,SELF.Selected.Item,SELF.Selected.Mark)

       SELF.Available.Item=SELF.Selected.Item

       SELF.Available.Mark=0

       ADD(SELF.Available)

      END

      FREE(SELF.Selected)

      SORT(SELF.Available,SELF.Available.Item)

   END

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