comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: question on destroying objarr's
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: question on destroying objarr's [message #62062 is a reply to message #62060] Tue, 19 August 2008 12:12 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
cgoethel@igpp.ucla.edu wrote:
> Hello,
>
> Does anyone have a simple example of how to create, populate, and
> destroy an objarr? I can create and populate (in a clumsy way) but
> then I am cannot get rid of it using OBJ_DESTROY.
>
> Thanks! Cindy
>
> EX:
>
> myObjArr=OBJARR(3)
> myObjArr[0]=someObj
> OBJ_DESTROY, myObjArr
>
> help, myObjArr
> MYOBJARR OBJREF = Array[3] (it's still there - why?)

loop through them...
for i=0,2 do obj_destroy, myObjArr[i]

Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: 3D graphing
Next Topic: Re: Today's IDL Lesson

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 09:40:15 PDT 2025

Total time taken to generate the page: 1.11992 seconds