--
For Each r As Row In Tables("表A").Rows
Dim lst As new List(of String)
Dim k As Integer = -1
Dim m As Integer = -1
For i As Integer = 0 To Tables("表A").Cols.Count - 1
If r.IsNull(i) = False Then
lst.Add(r(i))
m=i
ElseIf k = -1
k = i
End If
Next
If k > -1 AndAlso k < m Then
For i As Integer = 0 To lst.Count - 1
r(i) = lst(i)
Next
For i As Integer = lst.Count To Tables("表A").Cols.Count - 1
r(i) = Nothing
Next
End If
Next