16,554
社区成员
发帖
与我相关
我的任务
分享
Public Class Form1
Public Sub getvalue(ByVal tale As DataTable, ByVal DetailID As String)
Dim list As New List(Of DataRow)
Dim hav As Boolean
Dim str As String
For Each row As DataRow In tale.Rows
list.Add(row)
If (row("").ToString().Equals(DetailID)) Then
hav = True
str = DetailID
End If
Next
If (hav = False) Then
list.Clear()
End If
End Sub
End Class