Click here to Skip to main content
15,911,711 members
Home / Discussions / C#
   

C#

 
AnswerRe: check boxes in C#.net 2005 Pin
Malcolm Smart21-Sep-06 21:38
Malcolm Smart21-Sep-06 21:38 
AnswerRe: check boxes in C#.net 2005 Pin
Christian Graus22-Sep-06 0:13
protectorChristian Graus22-Sep-06 0:13 
QuestionReading from a text Pin
cnr36921-Sep-06 21:06
cnr36921-Sep-06 21:06 
AnswerRe: Reading from a text Pin
Stefan Troschuetz21-Sep-06 21:42
Stefan Troschuetz21-Sep-06 21:42 
Questionhow to move form in a main form Pin
Parshant Verma21-Sep-06 20:58
Parshant Verma21-Sep-06 20:58 
AnswerRe: how to move form in a main form Pin
Nader Elshehabi21-Sep-06 21:55
Nader Elshehabi21-Sep-06 21:55 
QuestionRichEditCtrl Pin
shan2k21-Sep-06 20:11
shan2k21-Sep-06 20:11 
AnswerRe: RichEditCtrl Pin
Stefan Troschuetz21-Sep-06 21:46
Stefan Troschuetz21-Sep-06 21:46 
QuestionProblem set parameter value in Crystal report Pin
hieunts21-Sep-06 19:31
hieunts21-Sep-06 19:31 
QuestionReg: Webservies projects Pin
guru_41821-Sep-06 18:44
guru_41821-Sep-06 18:44 
AnswerRe: Reg: Webservies projects Pin
Christian Graus21-Sep-06 18:49
protectorChristian Graus21-Sep-06 18:49 
AnswerRe: Reg: Webservies projects Pin
guru_41821-Sep-06 18:57
guru_41821-Sep-06 18:57 
QuestionRemoting problems with ArrayList return Pin
drinkingbird21-Sep-06 15:25
drinkingbird21-Sep-06 15:25 
AnswerRe: Remoting problems with ArrayList return Pin
Dave Kreskowiak21-Sep-06 15:58
mveDave Kreskowiak21-Sep-06 15:58 
GeneralRe: Remoting problems with ArrayList return Pin
drinkingbird21-Sep-06 16:14
drinkingbird21-Sep-06 16:14 
QuestionProblem connecting to an Access database Pin
TheBlindWatchmaker21-Sep-06 13:17
TheBlindWatchmaker21-Sep-06 13:17 
AnswerRe: Problem connecting to an Access database Pin
Guffa21-Sep-06 20:53
Guffa21-Sep-06 20:53 
GeneralRe: Problem connecting to an Access database Pin
TheBlindWatchmaker22-Sep-06 5:15
TheBlindWatchmaker22-Sep-06 5:15 
GeneralRe: Problem connecting to an Access database Pin
Guffa22-Sep-06 7:29
Guffa22-Sep-06 7:29 
GeneralRe: Problem connecting to an Access database Pin
TheBlindWatchmaker22-Sep-06 7:53
TheBlindWatchmaker22-Sep-06 7:53 
GeneralRe: Problem connecting to an Access database Pin
Guffa22-Sep-06 9:39
Guffa22-Sep-06 9:39 
I see. The method does exactly what it should, and returns an empty array.

You only add to the ArrayList duplicates of values that already exist in the list, but as you start with an empty list, there are never any duplicates, so it will always remain empty.

I guess that your intention was to add the values that aren't duplicates?

In that case, why don't you just get the unique values from the database in the first place? And if you specify what field you want instead of using "select *", you don't have to loop through the fields looking for the one you want.


---
b { font-weight: normal; }

GeneralRe: Problem connecting to an Access database Pin
TheBlindWatchmaker22-Sep-06 9:53
TheBlindWatchmaker22-Sep-06 9:53 
AnswerRe: Problem connecting to an Access database Pin
Guffa22-Sep-06 10:37
Guffa22-Sep-06 10:37 
QuestionPathTooLongException, Work around? [modified] Pin
James_12321-Sep-06 12:34
James_12321-Sep-06 12:34 
QuestionVS2005: Unsafe mode in web service? Pin
Goalie3521-Sep-06 11:24
Goalie3521-Sep-06 11:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.