谢谢蓝版。 针对某些层级的容器或控件,.form是失效的。
比如这个会报错:output.show(Forms("窗口1_MAIN").controls("TabControl1").TabPages(1).Form.name) =>未找到类型"TabPage"的公共成员"Form"
而您也给出了针对这些特殊情况的处理方法(如上楼),谢谢。
尝试用
' output.show(Forms("窗口1_MAIN").controls("TabControl1").TabPages(1).parent.parent.name)
' Output.Show( Forms("窗口1_MAIN").controls("TabControl1").TabPages(1).parent.parent.Gettype().fullname)
' output.show(Forms("窗口1_MAIN").controls("TabControl1").parent.name)
' Output.Show( Forms("窗口1_MAIN").controls("TabControl1").parent.Gettype().fullname)
得到的窗口名相同,但类型完全不一样:
' 窗口1_MAIN
' Foxtable.FormPanel
' 窗口1_MAIN
' Foxtable.WinForm.Form
所以想学习一下怎么去查类似的参考,感觉foxtable很多细节需要自己去学习:)
[此贴子已经被作者于2021/1/3 16:00:05编辑过]