I just have a series of shape (array), similar:
shp(0)
shp(1)
...
shp(n)
i need to delete all shape from shp(1) to the and of list, possible, maintain shp(0)
DELETE SHAPE ARRAY - i'm on vb6
-
- Administrator
- Posts: 79890
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: DELETE SHAPE ARRY - i'm on vb6
Does this work?
Code: Select all
Dim i As Long
For i = shp.UBound To 1 Step -1
Unload shp(i)
Next i
Best wishes,
Hans
Hans
-
- 5StarLounger
- Posts: 703
- Joined: 27 Jun 2021, 10:46
Re: DELETE SHAPE ARRY - i'm on vb6
Do you have control array, or an array of controls?
-
- PlatinumLounger
- Posts: 4554
- Joined: 26 Apr 2010, 17:36
Re: DELETE SHAPE ARRY - i'm on vb6
Array of controls
-
- PlatinumLounger
- Posts: 4554
- Joined: 26 Apr 2010, 17:36
Re: DELETE SHAPE ARRY - i'm on vb6
Hi Bro. Tks.HansV wrote: ↑12 Jun 2024, 18:55Does this work?
Code: Select all
Dim i As Long For i = shp.UBound To 1 Step -1 Unload shp(i) Next i
I can use the same code for text box(0), text box(1), ecc?
-
- Administrator
- Posts: 79890
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- 5StarLounger
- Posts: 703
- Joined: 27 Jun 2021, 10:46
Re: DELETE SHAPE ARRY - i'm on vb6
If it works, then you have a control array, not an array of controls.