How to Remove Duplicate values in a Queue

srivijay

New Member
Hi,

After adding the data into Queue, How to delete the duplicate values in that Queue.

Example:If we have sames value in 3 times i want to delete 2 values.

Please help me its urgent.
 

pug

New Member
Easiest is to reject duplicates when you add to queue. If that (for some reason) is not possible I would do something like this:

Get pending Item ->
Loop Pending Item -> Get Item Data -> Save Item Data to Collection -> End Loop ->
-> Remove duplicates (e.g: sort Collection -> Loop Collection -> Same as last? If yes: Delete Item, If no: End Loop.
 
Top