asked on
If dtTemp.Rows.Count > 0 And dtAssembly.Rows.Count > 0 Then
For Each drclient As DataRow In dtAssembly.Rows
For Each drServer As DataRow In dtTemp.Rows
If drclient("ASSEMBLY_NUMBER") = drServer("ASSEMBLY_NUMBER") Then drclient.Delete()
Next drServer
If dtTemp.Rows.Count = 0 Then Exit For
Next drclient
End If
ASKER
ASKER
Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,
TRUSTED BY
Exit For
After drclient.Delete().
If "ASSEMBLY_NUMBER" is a key then you could do this using:
dtAssembly.FindByASSEMBLY_
and
dtAssembly.Rows.Contains( Your_Assembly_Number_Here )
Open in new window