Dim ctn11e() As String = DataTables("弯头开料单").SQLGetComboListString("加工代号", "[piao号年月] = '" & .Value & "' and [类别] = '" & "HL" & "' ").Split("|")
For s11e As Integer = 0 To ctn11e.length - 1
Dim ctn112e() As String = DataTables("弯头开料单").SQLGetComboListString("施耐德piao号与数量", "[piao号年月] = '" & .Value & "' and [类别] = '" & "HL" & "' and [加工代号] = '" & ctn11e(s11e) & "'").Split("|")
msgbox("加工代号=" & ctn11e(s11e))
msgbox("施耐德piao号与数量的个数=" & ctn112e.length)
Dim qty11e As Integer
For s112e As Integer = 0 To ctn112e.length - 1
Dim qty112e As String = DataTables("弯头开料单").SQLGetComboListString("套数", "[piao号年月] = '" & .Value & "' and [类别] = '" & "HL" & "' and [加工代号] = '" & ctn11e(s11e) & "' and [施耐德piao号与数量] = '" & ctn112e(s112e) & "' ")
'msgbox("制造产品号=" & qty112e)
'Dim qty113e As Integer = CInt(qty112e)
'qty11e = qty11e + qty113e
Next
... ...
上面红色那行代码不知道是不是有问题,因为紫色那行提示代码运行的结果显示,"施耐德piao号与数量的个数" 总是 1,实际上可能是1/2/3等等其他数值的。谢谢。