老师,我是循环遍历一个表,并此把数值赋给变量yxmc,然后在从别一个表中找个变量的行,来更新,但是对应值有时并不是太一致,如果找不到一一完全对应的话,我找他的子串,也就yxmc包含的,或者是父串,被包含的,并且做出标记
Dim yx As DataTable =DataTables("教育部院校")
Dim aa As List(Of DataRow)
Dim bb As List(Of DataRow)
For Each dr As Row In Tables("省考院院校").Rows
Dim yxmc As String=StrToNarrow(dr("院校名称").trim())
aa = yx.Select("学校名称=\'" & yxmc & "\'")
If aa.count=1 Then
aa(0)("备注")="完全匹配"
end if
next