im getting an exception on this:
Dim strings_extreme As String()
strings_extreme(0) = ""
it says that i am using it before it is being assigned a value
how do i initialize it?
please note that i need to be able to do this:
strings_extreme = input.Split(","c).Distinct().OrderBy(Function(s) s)
If you truly don’t know how many strings there are going to be, then why not just use an IList:
You can get the
Countof how many strings there are and you canFor Eachthrough all the strings in the list.EDIT: If you’re just trying to build an array from a
Splityou should be able to do this: