[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: objects in loop
- Subject: Re: objects in loop
- From: Murray Shearer <shearerm(at)bp.com>
- Date: Wed, 31 Jan 2001 13:15:21 GMT
- Newsgroups: comp.lang.idl-pvwave
- Organization: Deja.com
- References: <958m04$u1c$1@nnrp1.deja.com>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:23328
Firstly apologies for the multiple posting of same question.
Secondly I have tried to solve my problem using container objects so I
now have.
Instruments = OBJ_NEW('IDL_Container')
for p=0,a do begin
ip = OBJ_NEW('orb',pos=[x(p), y(p), z(p)])
model -> ADD, ip
Instruments -> Add, ip
endfor
When I have finished with the objects I destroy the "instruments"
container object. Is this a correct way of doing things? It does seem
to work.
Sent via Deja.com
http://www.deja.com/