ArrayDeduplicate procedure

David Thompson dthmpsn1 at uiuc.edu
Fri Mar 21 13:06:50 PDT 2008


>ArrayDeduplicate  sorts the resulting array.  Is there a simple way 
>to perhaps arrange one of the other Array procedured to perform the 
>deDuplication without the sort.  I need my array in the same order 
>as the field from which it is derived but without any of the 
>duplicate entries.

Since the array is derived from a single field, the simplest approach 
might be to use the listchoices( function to create an array that 
doesn't have any duplicates to begin with.

Local ThisWindow, LocalArray
FileGlobal MyArray

ThisWindow = info("WindowName")
Window "The Other DB:Secret"
LocalArray = listchoices(MyField, chr(13))
Window ThisWindow
MyArray = LocalArray

Dave


More information about the Qna mailing list