No need to sort version:
on deletedups aList
retlist=[]
repeat while aList.count()
aItem = aList[1]
add(retList,aList[1])
aList.deleteAt(1)
repeat while aList.getOne(aItem)
aList.deleteOne(aItem)
end repeat
end repeat
return retList
end
_____
Stephen Ingrum wrote:
>
> start with a sorted list
> sort(aList)
...
> on inlist aItem, alist
...
> if aname=alist[i] then
_____
should be: if aItem = alist[i] then
Good luck,
Fumio Nonaka
Attain Corporation
[EMAIL PROTECTED]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]
- <lingo-l> Find duplicates in a list Changhsu P. Liu
- Re: <lingo-l> Find duplicates in a list Stephen Ingrum
- RE: <lingo-l> Find duplicates in a list Fumio Nonaka
- RE: <lingo-l> Find duplicates in a list Ken Prat