如何遍历某个窗口上面的Tab控件里面的子控件?
窗口上面的控件遍历我知道用:control数组,但tab控件里面的不知道要怎么遍历,网上说要用递归,但俱体如何来实现?
------解决方案--------------------
刚试了一下,这样就可以:
- C/C++ code
int lc, lifor lc = 1 to upperbound(control) for li = 1 to upperbound(control[lc].control) powerobject uo uo = control[lc].control[li] choose case uo.typeof() case commandbutton! commandbutton cb cb = uo cb.text = 'abc' case Groupbox! groupbox gb gb = uo gb.text = 'abd' gb.backcolor = 0 end choose next next