drsArrivalList = DataTables("TB_ArrivalList").SQLSelect("P And State <> '已开piao'")
For Each drArrivalList As DataRow In drsArrivalList If drsArrivalList.Count > 0 Then <----- 执行到这里都是没问题的,监视到Count的数值正常 MessageBox.Show(drArrivalList.GetParentRow("TB_Arrival")("SupplierCompanyName")) <----- 用MessageBox来抓错,发现问题就在这里 End If Next