|
-
Jun 8th, 2001, 06:57 PM
#1
Thread Starter
Lively Member
One step past creating forms during runtime
I know how to create forms during runtime, using a form that is already made, of course, but...
How do I do something like this:
(this doesn't work)
----------------------------
Dim frm(I) As Form
Set frm(I) = New frmMain
frm(I).Show
----------------------------
VB Does not seem to allow having an integer variable there. For some reason it must be a number. How do I get past this problem?
-
Jun 8th, 2001, 07:02 PM
#2
Monday Morning Lunatic
This is your problem line. C won't let you do this either, you need to do:
VB Code:
Dim frm() As Form
Redim frm(I) As Form
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 8th, 2001, 07:02 PM
#3
You don't need an Index
VB Code:
Dim frm As New Form1
frm.Show
-
Jun 8th, 2001, 07:54 PM
#4
Member
Megatron is totally and absolutely right (as usual).
The surfer!
[email protected]
There come's a time in the affairs of a man when he must take the bull by the tail and face the situation.
- W. C. Fields
-
Jun 9th, 2001, 06:07 AM
#5
Monday Morning Lunatic
But it didn't answer the question, because they already knew how to do that
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|