以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]自动填充序号 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=192362) |
-- 作者:tygzjsl -- 发布时间:2024/6/18 10:07:00 -- [求助]自动填充序号 你好老师,像图中选定后,点按钮自动填充1、2、3…… 代码应该怎么写啊
|
-- 作者:有点蓝 -- 发布时间:2024/6/18 10:25:00 -- With Tables("表A")
dim k as integer = 1 For i as Integer = .TopPosition+1 To .BottomPosition .Rows(i)("某列") = k k=k+1 Next End With |
-- 作者:wyz20130512 -- 发布时间:2024/6/18 10:32:00 -- 按钮的代码如下: Dim t As WinForm.Table = e.Form.Controls("Table1") Dim t1 As Table = t.Table Dim j As Integer = 1 For i As Integer = t1.TopRow To t1.BottomRow t1.Rows(i)("第一列") = j j = j + 1 Next [此贴子已经被作者于2024/6/18 10:35:36编辑过]
|
-- 作者:tygzjsl -- 发布时间:2024/6/18 12:06:00 -- 非常感谢各位老师! |