IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Here's what I ended up with
\n   SortedList srtHolder = new SortedList();\n   \n   foreach (string strFileName in fdlgGetFile.FileNames)\n   {\n      string short_file = Path.GetFileName(strFileName); \n      srtHolder.Add(short_file,short_file);\n   }\n\n\n   foreach (string short_file in srtHolder.Keys)\n   {\n      if (lstFiles.FindStringExact(short_file) == -1)\n      {\n         lstFiles.Items.Add(short_file);\n      }\n   }\n\n


Feels kind of evil, using the filename as both the key and the data,
but it does return in sorted order for putting it in to the list box.
New Did you look at Array.Sort() ?
Sorts the elements in an entire one-dimensional Array using the IComparable interface implemented by each element of the Array.

[C#]
[Serializable]
public static void Sort(
Array array
);
Parameters
array
The one-dimensional Array to sort.
--

... a reference to Presidente Arbusto.
-- [link|http://itre.cis.upenn.edu/~myl/languagelog/archives/001417.html|Geoffrey K. Pullum]
New I did now
Thanks.
I knew that last one felt wrong!
     C# sorting a list of strings - (broomberg) - (5)
         something like... - (pwhysall)
         Re: C# sorting a list of strings - (inthane-chan) - (3)
             Here's what I ended up with - (broomberg) - (2)
                 Did you look at Array.Sort() ? - (Arkadiy) - (1)
                     I did now - (broomberg)

This looks like the output of a Markov bot that's been fed bus timetables from a city where the buses crash constantly.
34 ms