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

Home » Public Forums » archive » Re: removing objects from a container
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: removing objects from a container [message #49010 is a reply to message #49008] Fri, 09 June 2006 11:19 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ben Tupper writes:

> David - please look out the window at your roses for a few minutes...

OK, I even gave the dog a good scratch while I was at it. I *do* feel
better. :-)

> I can't quite figure the REMOVE method out. IDLgrROIgroup inherits from
> (eventually) IDL_CONTAINER so the REMOVE method is supposed to work. I
> don't see in the docs that IDLgrROIgroup overrides the method - but
> something is different.
>
>
> IDL> group = OBJ_NEW('IDLgrROIgroup')
> IDL> roi = OBJ_NEW('IDLgrROI')
> IDL> group->Add, roi
> IDL> group->REMOVE, /ALL
> % IDLGRROIGROUP::REMOVE: Incorrect number of arguments.
> % Execution halted at: $MAIN$
> IDL> group->IDL_CONTAINER::REMOVE,/ALL
>
>
> Is this a bug or just a thorn?

Well, bad news. Here is my IDL session, with *no* error message!

IDL> group = OBJ_NEW('IDLgrROIgroup')
IDL> roi = OBJ_NEW('IDLgrROI')
IDL> group->Add, roi
IDL> group->REMOVE, /ALL

IDL 6.2 on Windows. (I'm not getting a new version of IDL until
there is a good reason to. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: using of hat symbol on textoidl
Next Topic: idl 6.3, cdf_epoch16 keyword to cdf_varcreate

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

Current Time: Fri Oct 10 07:26:08 PDT 2025

Total time taken to generate the page: 0.71862 seconds