ArrayDeduplicate procedure

James Rea jim at provue.com
Thu Mar 20 17:32:20 PDT 2008


> field A
> group
> outlinelevel 1
> arrayselectedbuild array,¶,"",A

No, that will also sort the data.

> 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.

For general purpose application this is sort of meaningless. If an item
appears multiple times in a list, which one do you keep? Once you start
removing items you can no longer preserve the original order.

Of course you might arbitrarily say "well, I want to keep the first
one". If the array is small you can write a procedure that can do this
fairly reasonably, but Panorama does not include that as a built in
feature. If the array is large (more than a couple hundred items) then
it may be difficult to get good performance.

Jim Rea
President, ProVUE Development

---------------------------------------------------------------------
---   Celebrating 29 years of software excellence (1978-2007)     ---
---------------------------------------------------------------------
ProVUE Development          (714) 841-7779
18685-A Main Street PMB356  http://www.provue.com/
Huntington Beach, CA 92648  Panorama: Turn information into knowledge
---------------------------------------------------------------------


More information about the Qna mailing list