以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  如何获得动态表 双击所在单元格内容?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=145026)

--  作者:xa139
--  发布时间:2020/1/6 13:49:00
--  如何获得动态表 双击所在单元格内容?

DoubleClick 加入代码

MessageBox.Show(e.Table.Name)

e.cancel = true

Se1ect Case e.Table.Name

    Case "表A"

        \'针对表A的代码

    Case "表B"

        \'针对表B的代码

    Case "表C"

        \'针对表C的代码

Case Else 

If forms("report_flow").opened

forms("report_flow").controls("TextBox2").text = e.Table.Cells...... (e.Col ?........)

End If

End Se1ect

 
[此贴子已经被作者于2020/1/6 13:55:03编辑过]

--  作者:有点蓝
--  发布时间:2020/1/6 14:23:00
--  
forms("report_flow").controls("TextBox2").text = e.row(e.table.cols(e.table.col).name)