# 用模拟的呀!

Posted by 小吴 on October 19, 1999 at 08:49:19:

In Reply to: 有没有人在研究 VBCE ...救救我吧 posted by 小蜥蜴 on October 18, 1999 at 22:44:58:

嗯，我现在已经把 VBCE uninstall 掉了，所以印象不是很清楚。不过如果 VB Script 真的不支援的话，你可以用模拟的呀! 例如在 Form_Load 事件中

Private mctlLabel(10) As Control ' 虽然型别宣告和 Private 宣告在 VBScript 中是无效的，不过就将就用一下吧!

Sub Form_Load ()
Set mctlLabel(0) = Label0
Set mctlLabel(1) = Label1
Set mctlLabel(2) = Label2
Set mctlLabel(3) = Label3
...
End Sub

这样就可以模拟控制项阵列的效果了。

Follow Ups: