标题:[求助]字符串“”到类型“Integer”的转换
取消只看楼主
lingkongyu
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2007-7-17
 问题点数:0 回复次数:0 
[求助]字符串“”到类型“Integer”的转换

Dim numrows As Integer
Dim numcells As Integer
Dim i As Integer = 0
Dim j As Integer = 0
Dim row As Integer = 0
Dim r As HtmlTableRow
Dim c As HtmlTableCell
numrows = CInt(Text1.Value)
numcells = CInt(text2.value)
For j = 0 To numrows - 1
r = New HtmlTableRow()
If (row Mod 2 <> 0) Then
r.BgColor = "#afeeee"
End If
row += 1
For i = 0 To numcells - 1
c = New HtmlTableCell()
c.Controls.Add(New LiteralControl("行" & j + 1 & ",列" & i + 1))
r.Cells.Add(c)
Next i
table1.rows.add(r)
Next j

numrows = CInt(Text1.Value)
numcells = CInt(text2.value)这两行有错,谁帮下 vb我不懂


搜索更多相关主题的帖子: Integer Dim 字符 类型 numrows 
2007-08-14 15:33



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-162633-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.254646 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved