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

C#

 
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 
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 

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.