Agent707
Member
I have a dataset with a column "KeyName". I need to filter my for each loop on this if I can.
Something like this...
e.g.
The reason I need to do this is THIS For Each loop is nested inside another one where I am looping though each "KeyName" in an XML Document.
Looks like this.
Hope that makes sense. Thanks
Code:
For Each oDataRow In oDataSet.Tables(0).Rows
code
Next
e.g.
Code:
For Each oDataRow In oDataSet.Tables(0).Rows (where "KeyName = SomeValue")
code
Next
Looks like this.
Code:
For Each lo_node In lo_nodeSet.SelectNodes("attachments")
lo_attachments = GetDataElement(lo_node, "attachments")
ls_name = lo_attachments.GetAttribute("KeyName")
some code
For Each oDataRow In oDataSet.Tables(0).Rows (where KeyName = ls_name)
BUNCH of code
Next
more code
Next