[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objects in loop

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

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