Okay. You may want to look at my other post "Control Array Show problem".
Now that I have it LOADED, How do I UNLOAD THEM
HOW DO I UNLOAD THEM?????
The objective is to remove all occurrences of the frame except for Frame1(0).
I tried a couple things:
This code did not work. I got an "Type Mismatch" error.
I then tried this, thinking I need to remove the OPTION controls first:
I realize I need to do this for all 3 option controls in the FRAME. With the code above, it's going out of the routine on the DO statement. When I did a debug.print, Option1.Ubound = 1
Can you help me with this code?
Now that I have it LOADED, How do I UNLOAD THEM
Code:
Private Sub Command1_Click()
Load Frame1(1)
Frame1(1).Top = Frame1(0).Top + Frame1(0).Height + 50
Frame1(1).Visible = True
Load Option1(1)
Set Me.Option1(1).Container = Me.Frame1(1)
Option1(1).Left = Option1(0).Left
Option1(1).Top = Option1(0).Top
Option1(1).Visible = True
Load Option2(1)
Set Me.Option2(1).Container = Me.Frame1(1)
Option2(1).Left = Option2(0).Left
Option2(1).Top = Option2(0).Top
Option2(1).Visible = True
Load Option3(1)
Set Me.Option3(1).Container = Me.Frame1(1)
Option3(1).Left = Option3(0).Left
Option3(1).Top = Option3(0).Top
Option3(1).Visible = True
End Sub
HOW DO I UNLOAD THEM?????
The objective is to remove all occurrences of the frame except for Frame1(0).
I tried a couple things:
Code:
Do until Frame1(Frame1.Ubound) = 0
unload frame1(frame1.ubound)
loop
I then tried this, thinking I need to remove the OPTION controls first:
Code:
Set Me.option1(option1.UBound).Container = Me.frame1(frame1.UBound)
Do Until option1(option1.UBound) = 0
Unload option1(option1.UBound)
Loop
Can you help me with this code?