开发者

vb.net insert record into dataset cell from a loop

 For j = 0 To wcData.Tables(0).Rows.Count - 1
  For i = 900 To 1700
    wcData.Tables("db").Rows(开发者_C百科j)("range") = i
   Next
 Next

trying to insert "i" into each column cell of "range"

any suggestion.

Thanks.


Dim rowOffset As Integer = 900;

For j = 0 To wcData.Tables(0).Rows.Count - 1 
    wcData.Tables("db").Rows(j).Item("range") =  rowOffset + j
Next


 Dim rowOffset As Integer = 900

  For j = 0 To wcData.Tables(0).Rows.Count - 1
   wcData.Tables("ratingout").Rows(j).Item("range") = rowOffset + j
   If i >= 1700 Then
    Exit For
   End If
 Next

this worked for now. thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜