为何我这段代码执行不出结果,msgbox时xRow(xCol)无值,其它都正常,搞了2天,新增加的行就是没有数据填入Dim sRow As Row = Tables("数据显示窗口_TblData").Current
If sRow Is Nothing Then Return
Dim xRow As Row = Tables(e.Form.Controls("LblMainTbl").ToolTip).AddNew
If xRow Is Nothing Then Return
Dim txCol As String = ChkColName.Text.Trim ‘关键列
For Each xsCol As Col In Tables("数据显示窗口_TblData").Cols 'Tables( Vars("gShowTableName")).Cols '
Dim xCol As String = xsCol.Name.Trim
If xCol <> txCol Then ’不是关键列时填入数据
xRow(xCol) = sRow(xCol)
msgbox(xCol & "<" & xRow(xCol) & "<>" & sRow(xCol) & ">" & txCol)
End If
Next