Navigation: ABC Library Reference > EditMultiSelectClass > EditMultiSelectClass Methods >====== TakeCompletedInit (pre-process selected queue) ====== | |
TakeCompletedInit( selected ), VIRTUAL
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