Click here to Skip to main content
15,905,971 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Decode CDR file Pin
Socheat.Net26-Jan-11 22:33
Socheat.Net26-Jan-11 22:33 
GeneralRe: C# Decode CDR file Pin
Pete O'Hanlon26-Jan-11 22:38
mvePete O'Hanlon26-Jan-11 22:38 
GeneralRe: C# Decode CDR file Pin
Socheat.Net26-Jan-11 22:41
Socheat.Net26-Jan-11 22:41 
GeneralRe: C# Decode CDR file Pin
Pete O'Hanlon26-Jan-11 22:45
mvePete O'Hanlon26-Jan-11 22:45 
GeneralRe: C# Decode CDR file Pin
OriginalGriff26-Jan-11 22:40
mveOriginalGriff26-Jan-11 22:40 
GeneralRe: C# Decode CDR file Pin
Socheat.Net26-Jan-11 22:43
Socheat.Net26-Jan-11 22:43 
AnswerRe: C# Decode CDR file Pin
V.26-Jan-11 22:52
professionalV.26-Jan-11 22:52 
GeneralRe: C# Decode CDR file Pin
Socheat.Net26-Jan-11 23:12
Socheat.Net26-Jan-11 23:12 
QuestionHow to join 2 queues? Pin
Chesnokov Yuriy26-Jan-11 21:09
professionalChesnokov Yuriy26-Jan-11 21:09 
AnswerRe: How to join 2 queues? Pin
Abhinav S26-Jan-11 21:42
Abhinav S26-Jan-11 21:42 
Questionwhat is the difference between these two lines in c# Pin
nithla26-Jan-11 19:13
nithla26-Jan-11 19:13 
AnswerRe: what is the difference between these two lines in c# Pin
Pravin Patil, Mumbai26-Jan-11 20:30
Pravin Patil, Mumbai26-Jan-11 20:30 
AnswerRe: what is the difference between these two lines in c# Pin
OriginalGriff26-Jan-11 21:15
mveOriginalGriff26-Jan-11 21:15 
GeneralRe: what is the difference between these two lines in c# Pin
Pravin Patil, Mumbai26-Jan-11 21:24
Pravin Patil, Mumbai26-Jan-11 21:24 
GeneralRe: what is the difference between these two lines in c# Pin
OriginalGriff26-Jan-11 21:26
mveOriginalGriff26-Jan-11 21:26 
GeneralRe: what is the difference between these two lines in c# Pin
nithla26-Jan-11 21:30
nithla26-Jan-11 21:30 
AnswerRe: what is the difference between these two lines in c# Pin
Pravin Patil, Mumbai26-Jan-11 21:25
Pravin Patil, Mumbai26-Jan-11 21:25 
QuestionDataset Question Pin
eddieangel26-Jan-11 11:09
eddieangel26-Jan-11 11:09 
AnswerRe: Dataset Question Pin
RobCroll26-Jan-11 12:51
RobCroll26-Jan-11 12:51 
GeneralRe: Dataset Question Pin
eddieangel26-Jan-11 12:58
eddieangel26-Jan-11 12:58 
GeneralRe: Dataset Question Pin
RobCroll26-Jan-11 13:22
RobCroll26-Jan-11 13:22 
GeneralRe: Dataset Question Pin
eddieangel26-Jan-11 13:30
eddieangel26-Jan-11 13:30 
That is the general idea. Normally when you load a datatable you feed it an argument like so:

this.tableadapter.fillbyarg(this.dataset.datatable, arg1);

That would load all of the items with category = arg1. Well, I want to load all items from items where category is = arg1 where arg1 is (1,2,3,4,5, etc...). So yes, the IN keyword would be what I would use in a SQL query. My question is twofold. 1) Can you use In and supply the argument like so:
int[] myInt = new int[3];
myInt[0] = 1;
myInt[1] = 2;
myInt[2] = 3;

this.tableadapter.fillbyarg(this.dataset.datatable,myInt);


You see the crux of my dilemma at this point I think?

The second question is whether using In is a good approach or whether there is something I am not considering here.

An alternative is to load the myInt values into a datatable and do something like this:

this.tableAdapter.fillbyarg(this.dataset.datatable, valuefromtable);


Adding that line in a loop through the datatable from the Excel spreadsheet.
GeneralRe: Dataset Question Pin
RobCroll26-Jan-11 14:43
RobCroll26-Jan-11 14:43 
AnswerRe: Dataset Question Pin
PIEBALDconsult26-Jan-11 13:46
mvePIEBALDconsult26-Jan-11 13:46 
GeneralRe: Dataset Question Pin
eddieangel26-Jan-11 13:48
eddieangel26-Jan-11 13:48 

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.