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

Re: making an object from class structure?

Pavel A. Romashkin (pavel.romashkin@noaa.gov) writes:
> I guess I am still a little confused.

Pavel, he is making his *own* save files. :-)

> If you are going to manually fill in values into future object's fields,
> why not get its definition from SAV and then use OBJ_NEW and SETPROPERTY
> to make a reference and fill it with data?

For the simple reason that the SETPROPERTY method doesn't
(in my experience, *ever*) allow you to set all the fields
of the object.



David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155