|
-
Sep 1st, 2000, 07:19 PM
#1
Thread Starter
Frenzied Member
I got a control array (shape one) now how do I clear the whole thing? there are 15 of those shapes
NXSupport - Your one-stop source for computer help
-
Sep 1st, 2000, 07:25 PM
#2
What do you mean, "clear"? You mean, not visible?
Code:
For i = 0 to 15
Shape1(i).Visible = False
Next
-
Sep 1st, 2000, 07:28 PM
#3
Thread Starter
Frenzied Member
yea and I also have an array of labels, do I do the same thing, but make it .caption = "" instead of .visible = false
P.S. I was thinking of a label when I was posting it (becuase I need it for a label and a shape) thats why I wrote clear
NXSupport - Your one-stop source for computer help
-
Sep 1st, 2000, 07:34 PM
#4
_______
<?>
If you mean unload it works like this.
Code:
Private Sub Command2_Click()
Dim intcre As Integer
'you always leave the index(0) of an array loaded
For intcre = 1 To 14
Unload Shape1(intcre)
Next intcre
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 1st, 2000, 07:36 PM
#5
Same thing, isn't very hard:
Code:
For i = 0 to 15
Label1(i).Caption = ""
Next
You can also do it this way:
Code:
For Each MyControl In Me.Controls
If TypeOf MyControl Is Label Then MyControl.Caption = ""
Next
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
|