0
我在操作數據集時遇到問題,我如何過濾行而無需獲取表中的全部記錄。如何操作數據集
這裏是我的代碼:
For j As Integer = 0 To sDataSet.Tables(tran_ar_so_t.Name).Rows.Count - 1
Dim nQty, nPrice, nAmount As Double
With sDataSet.Tables(tran_ar_so_t.Name)
nQty = IIf(.Rows(j).Item("nQty") Is DBNull.Value, 0, .Rows(j).Item("nQty")) : nPrice = IIf(.Rows(j).Item("nPrice") Is DBNull.Value, 0, .Rows(j).Item("nPrice"))
ComputeNet(j)
nAmount = net * nQty
.Rows(j).Item("nAmountDue") = nAmount
End With
Next
我不明白這個問題,也不明白代碼是如何與問題相關的。你能舉出一個正在發生的事情和你想要發生的事情的例子嗎? – 2012-01-31 06:45:06