Michelangelo
September 17th, 2001, 02:50 AM
I've encountered a problem when using the Forms.Add method. When i open the Form this way in runtime, it opens perfectly. But when calling a procedure in this form from another form or module a new window opens, which obviously isn't meant to.
My code looks like this
Sub Form1_Load()
Call OpenForms
Call EditText()
End Sub
Sub EditText()
Formauto1.Text1.Text = "SomeText"
End Sub
Sub OpenForms()
Dim x as Form, strName as string
strName = "Formauto1"
set x = Forms.Add(strName)
x.Show
End Sub
The form FormAuto opens correctly in the procedure OpenForms(). However it opens again when calling procedure EditText().
Any suggestions.
My code looks like this
Sub Form1_Load()
Call OpenForms
Call EditText()
End Sub
Sub EditText()
Formauto1.Text1.Text = "SomeText"
End Sub
Sub OpenForms()
Dim x as Form, strName as string
strName = "Formauto1"
set x = Forms.Add(strName)
x.Show
End Sub
The form FormAuto opens correctly in the procedure OpenForms(). However it opens again when calling procedure EditText().
Any suggestions.