# Forms collection 或 array

Posted by 小吴 on February 22, 1998 at 17:23:03:

In Reply to: Question about MDI child form posted by Rice41 on February 20, 1998 at 07:57:27:

Forms 这个属性里面包含了目前载入到记忆体的 form。你可以扫描这个 collection 的内容。

另外，既然 VB 没有 form array，那你可以自己做呀! 例如
Dim A(10) As frmA, B(10) As frmB

For i = 1 To 10
Set A(i) = New frmA
Set B(i) = New frmB
Next i

A(1).Hide: B(2).Hide
A(2).Show: B(2).Show

Follow Ups: