Click here to Skip to main content
15,891,567 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionfile not found: cs2.exe Pin
rizaky20115-Jun-12 19:12
rizaky20115-Jun-12 19:12 
AnswerRe: file not found: cs2.exe Pin
Richard MacCutchan5-Jun-12 21:13
mveRichard MacCutchan5-Jun-12 21:13 
GeneralRe: file not found: cs2.exe Pin
rizaky20117-Jun-12 16:54
rizaky20117-Jun-12 16:54 
GeneralRe: file not found: cs2.exe Pin
Richard MacCutchan7-Jun-12 21:44
mveRichard MacCutchan7-Jun-12 21:44 
GeneralRe: file not found: cs2.exe Pin
rizaky20118-Jun-12 18:26
rizaky20118-Jun-12 18:26 
QuestionDisabling external data connections when opening Excel. Pin
Aaron.Morrison5-Jun-12 14:27
Aaron.Morrison5-Jun-12 14:27 
AnswerRe: Disabling external data connections when opening Excel. Pin
Aaron.Morrison6-Jun-12 13:16
Aaron.Morrison6-Jun-12 13:16 
QuestionUse foreign key constraint with a loop ? Pin
Johan Hakkesteegt5-Jun-12 3:21
Johan Hakkesteegt5-Jun-12 3:21 
Hi,

I have a DataSet with two tables that have a common field.

Table 1 contains order header data and table 2 order row data. Both tables contain data of multiple orders.

I want to handle each order separately, and my current method is a loop inside a loop and a "manual" check. For example something like this:
VB
For Each rwH as DataRow in ds.Tables("H").Rows
     'Get some header data
     '...
     For Each rwR as DataRow in ds.Tables("R").Rows
          If rwH.Item("KeyField").ToString = rwR.Item("KeyField").ToString Then
               'Get the relevant row data
               '...
          End If
     Next
Next


The question is, is there a way to avoid having to loop through the rows, and use this sort of crudish comparison ?
I was thinking maybe creating a foreign key constraint. However, although I know how to create the constraint, I do not know how to use it to my advantage with any loop (assuming it is possible at all) ?

Or can someone suggest an alternative (better) method ?
All input is appreciated.

Cheers,
Johan
My advice is free, and you may get what you paid for.

AnswerRe: Use foreign key constraint with a loop ? Pin
Paul Conrad5-Jun-12 6:37
professionalPaul Conrad5-Jun-12 6:37 
GeneralRe: Use foreign key constraint with a loop ? Pin
Johan Hakkesteegt5-Jun-12 21:04
Johan Hakkesteegt5-Jun-12 21:04 
AnswerRe: Use foreign key constraint with a loop ? Pin
Dave Kreskowiak5-Jun-12 7:48
mveDave Kreskowiak5-Jun-12 7:48 
GeneralRe: Use foreign key constraint with a loop ? Pin
Johan Hakkesteegt5-Jun-12 20:38
Johan Hakkesteegt5-Jun-12 20:38 
AnswerRe: Use foreign key constraint with a loop ? Pin
woopsydoozy5-Jun-12 7:51
woopsydoozy5-Jun-12 7:51 
GeneralRe: Use foreign key constraint with a loop ? Pin
Johan Hakkesteegt5-Jun-12 20:56
Johan Hakkesteegt5-Jun-12 20:56 
QuestionAVI Display Problem Pin
Dr David Johnson PhD4-Jun-12 9:28
Dr David Johnson PhD4-Jun-12 9:28 
Questionvb2010os dev Pin
Emile the code master3-Jun-12 22:44
Emile the code master3-Jun-12 22:44 
AnswerRe: vb2010os dev Pin
Richard MacCutchan3-Jun-12 23:10
mveRichard MacCutchan3-Jun-12 23:10 
AnswerRe: vb2010os dev Pin
Eddy Vluggen4-Jun-12 0:40
professionalEddy Vluggen4-Jun-12 0:40 
AnswerRe: vb2010os dev Pin
Dave Kreskowiak4-Jun-12 4:08
mveDave Kreskowiak4-Jun-12 4:08 
AnswerRe: vb2010os dev Pin
Paul Conrad4-Jun-12 6:47
professionalPaul Conrad4-Jun-12 6:47 
AnswerRe: vb2010os dev Pin
Luc Pattyn4-Jun-12 7:12
sitebuilderLuc Pattyn4-Jun-12 7:12 
AnswerRe: vb2010os dev Pin
Paul Conrad4-Jun-12 7:16
professionalPaul Conrad4-Jun-12 7:16 
AnswerRe: vb2010os dev Pin
Bert Mitton5-Jun-12 8:00
professionalBert Mitton5-Jun-12 8:00 
QuestionPosting a XML String to a Web Service via VB.NET VS2010 Pin
Member 77438051-Jun-12 12:06
Member 77438051-Jun-12 12:06 
AnswerRe: Posting a XML String to a Web Service via VB.NET VS2010 Pin
Paul Conrad2-Jun-12 8:10
professionalPaul Conrad2-Jun-12 8:10 

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.