For x = 0 To 200
Dim aRow As DataRow = Table.NewRow
aRow("SellPrice") = Sell aRow("Total") = Sell * CDbl(txtQuant.Text) - CDbl(txtTransactionCost.Text)
If IsDBNull(arow("executiontype")) Then aRow("Total") += 100 End If
Table.Rows.Add(aRow)
Sell = Sell + 0.25 Next
|