Click here to Skip to main content
15,899,023 members
Home / Discussions / C#
   

C#

 
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 
QuestionString with escaped squences... Pin
e-laj21-Sep-06 11:22
e-laj21-Sep-06 11:22 
AnswerRe: String with escaped squences... Pin
Alaric_21-Sep-06 11:41
professionalAlaric_21-Sep-06 11:41 
AnswerRe: String with escaped squences... Pin
Christian Graus21-Sep-06 11:45
protectorChristian Graus21-Sep-06 11:45 
AnswerRe: String with escaped squences... Pin
Alaric_21-Sep-06 11:49
professionalAlaric_21-Sep-06 11:49 
AnswerRe: String with escaped squences... Pin
AndriyZZ21-Sep-06 12:15
AndriyZZ21-Sep-06 12:15 
AnswerMore Details: String with escaped sequences... Pin
e-laj21-Sep-06 13:03
e-laj21-Sep-06 13:03 
GeneralRe: More Details: String with escaped sequences... Pin
Christian Graus21-Sep-06 15:27
protectorChristian Graus21-Sep-06 15:27 
GeneralRe: More Details: String with escaped sequences... Pin
e-laj21-Sep-06 16:33
e-laj21-Sep-06 16:33 
AnswerOK: Here is a method to handle that... Pin
e-laj21-Sep-06 17:53
e-laj21-Sep-06 17:53 
AnswerRe: String with escaped squences... Pin
Rob Graham21-Sep-06 17:54
Rob Graham21-Sep-06 17:54 
GeneralRe: Finally found the method Pin
e-laj21-Sep-06 19:02
e-laj21-Sep-06 19:02 
Questionbinding a listbox Pin
heze21-Sep-06 11:18
heze21-Sep-06 11:18 
Answerself response Pin
heze21-Sep-06 11:36
heze21-Sep-06 11:36 

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.