# Re: SOS~~请问有关开启Form二问题

Posted by wjj on July 29, 1999 at 16:53:39:

In Reply to: SOS~~请问有关开启Form二问题 posted by 小宛 on July 29, 1999 at 16:33:13:

: 1.请问如何将字串指定为Form Name
: 2.如何在副程式中开启指定的Form
: 以下为Test Code请帮我看看应如何修改，才可顺利执行

: Private Sub Command1_Click()
: Dim frm As Form
: Set frm = Text1.Text '这里有错-Text无法指给form
: op (frm) '这里执行错误-出现Type mismatch
: End Sub

:
: Sub op(aa As Form)
: aa.Show
: End Sub
Exp:
Private Sub Command1_Click()
Dim aa As New Form1
aa1 aa
aa.Show
End Sub

Sub aa1(ByVal aa As Form)
aa.Caption = "dddd"
End Sub

Follow Ups:

- Re: SOS~~请问有关开启Form二问题 C.T.Wang 00:09:19 7/31/99 (0)