title: retrieve unique values from string of numbers
body: <p>i have this string</p>
  
  <pre><code> Dim test As String = "12,32,12,32,12,12,32,15,16,15,14,12,32"
  </code></pre>
  
  <p>and want to retrieve a string</p>
  
  <pre><code>newstr = 12,32,15,16,14
  </code></pre>
  
  <p>i tried this much </p>
  
  <pre><code>Dim test As String = "12,32,12,32,12,12,32,15,16,15,14,12,32"
  Dim word As String
  Dim uc As String() = test.Split(New Char() {","c})
  For Each word In uc
  ' What can i do here?????????
  Next
  </code></pre>
  
  <p>only unique numbers how can i do that in vb asp.net</p>
  
  <p>right answer</p>
  
  <pre><code>Dim test As String = "12,32,12,32,12,12,32,15,16,15,14,12,32"
                  Dim word As String
                  Dim uc As String() = test.Split(New Char() {","c}).Distinct.ToArray
                  Dim sb2 As String = "-1"
                  For Each word In uc
                      sb2 = sb2 + "," + word
                  Next
                  MsgBox(sb2.ToString)
  </code></pre>