R
randy
This maybe a silly question, but I like efficiency in my code so I'll ask.
Will the following 2 For/Each statements do the same thing?
Dim datRow as DataRow
For each datRow in DataTable.Select("State = HI")
Next
I would normally add an extra step and hold the returned rows first...
Dim datRows() as DataRow
Dim datRow as DataRow
datRows = DataTable.Select("State = HI")
For each datRow in datRows
Next
Cheers,
-Randy
Will the following 2 For/Each statements do the same thing?
Dim datRow as DataRow
For each datRow in DataTable.Select("State = HI")
Next
I would normally add an extra step and hold the returned rows first...
Dim datRows() as DataRow
Dim datRow as DataRow
datRows = DataTable.Select("State = HI")
For each datRow in datRows
Next
Cheers,
-Randy