Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

destroying an array of objects

Status
Not open for further replies.

fenris

Programmer
May 20, 1999
824
CA
Is there a quick way, other then iterating through the array, to destroy an array of objects.

For example:

dim myArray() as clsMyClass

Now assume that it is loaded with objects. How would one go about destroying the thing?

I am pretty sure this would work:

for i = 1 to ubound(myArray)
set myArray(i) = nothing
next i

But there has to be a better way.....

Any Comments...
Troy Williams B.Eng.
fenris@hotmail.com

 
Thanks
Troy Williams B.Eng.
fenris@hotmail.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top