Nyazi.
Use the way that I gave you with the Datatable where I gave you pseudo
because I did not know you were using VBNet..
Bassicly it is like this, the only thing is that you have to add your
counting fields.
http://www.vb-tips.com/default.aspx?...2-1a580eb893b2
I hope this helps, and please don't start a new thread, Greg would not know
that I wrote this already to you and that you are in fact busy with a
datatable.
Cor
"Niyazi" <Niyazi@discussions.microsoft.com> schreef in bericht
news:3940BAE8-150D-4B05-BC15-92C089E3E4DF@microsoft.com...[color=blue]
> Hi all,
>
> What is fastest way removing duplicated value from string array using
> vb.net?
>
> Here is what currently I am doing but the the array contains over 16000
> items. And it just do it in 10 or more minutes.
>
> 'REMOVE DUBLICATED VALUE FROM ARRAY +++++++++++++++++
> Dim col As New Scripting.Dictionary
> Dim ii As Integer = 0
> For ii = 0 To DTHESNO_ARRAY.Length - 2
> If Not col.Exists(CStr(DTHESNO_ARRAY(ii))) Then
> col.Add(CStr(DTHESNO_ARRAY(ii)), ii)
> End If
> Next
>
> ReDim _DTHESNOKR102A(col.Count - 1)
>
> 'ASSIGN NONE DUPLIATED VALUT TO STRING ARRAY ++++++++
> Dim iii As Integer = 0
> For iii = 0 To col.Count - 1
> _DTHESNOKR102A(iii) = col.Keys(iii)
> Next
>
> 'NOW SORT THE STRING ARRAY ++++++++++++++++++++++++++
> Array.Sort(_DTHESNOKR102A)
>
> col = Nothing
>
>
> Is it possible to clone the col to the _DTHESNOKR102A(col.Count - 1)
>
> Thank you very much for reading my post.
>
> Rgds,
> GC
>
>
>[/color]