DBY
Who's Online
0 registered (), 12 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Latest Photo Gallery
light pole in the water
Eastern State Penitentiary - Philadelphia
Top Posters (30 Days)
HarryB 13
FinalDJ 11
Anartist 11
Goofy 6
m2h 3
Fitzy 3
firebane 1
bitstorm 1
Doorslammer 1
Dough 1
Topic Options
#2206 - 08/07/01 10:36 AM Control Array
Doorslammer Offline

Funeral Director

Registered: 06/03/01
Posts: 6193
Loc: South Jersey
I have an array of controls in Visual Basic. Lets say 10 Shapes. If all 10 Shapes are loaded at startup, and a RANDOM shape becomes unloaded, how do I know that the Index is free?

i.e. Shapes 1 - 10 get loaded.

Shapes 2,7,4 and 9 get unloaded.
When the user clicks a button, how can I get a shape to load with index 2,4,7 or 9? (Going beyond 10 is not an option).

Is something like:

for each shape in myShape
debug.print myShape(shape).Index
Next shape

Would that work? And if not, what would?

Cheers!

-Dark

_________________________
new url easy to remember www.MyDby.com another www.w3board.com and our original www.digital-boneyard.com

Top
#2207 - 08/07/01 10:53 AM Re: Control Array [Re: Doorslammer]
NightShade Offline

Cyber zombie

Registered: 06/11/01
Posts: 4461
Loc: Good ole London town
Set a flag?? I have no idea what you're trying to do Dark, but from the looks of things this is easy, give me a holler.

_________________________

Top
#2208 - 08/10/01 03:25 PM Re: Control Array [Re: NightShade]
Doorslammer Offline

Funeral Director

Registered: 06/03/01
Posts: 6193
Loc: South Jersey
haha

I was being dumb. I knew how to do it, I just had a mental block. Thanks anyways :)

-Dark (Who just learnt how to spell)

Edited by Dark on 08/11/01 06:12 AM.

_________________________
new url easy to remember www.MyDby.com another www.w3board.com and our original www.digital-boneyard.com

Top
#2209 - 08/10/01 06:21 PM Re: Control Array [Re: NightShade]
Anonymous
Unregistered


lol

Icq 38095809

Top



Moderator:  Doorslammer, Nightowl, NightShade, Rez 
Shout Box

Today's Birthdays
No Birthdays
May
Su M Tu W Th F Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31