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

Home » Public Forums » archive » object association
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
object association [message #72389] Thu, 02 September 2010 06:57
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Hi guys,

I'm using IDL 7.0... Do you know if there is a way to use the
attributes of an associated object without using GetProperty and
SetProperty methods ?

An example:
#############################
## Class a

FUNCTION a::Init
RETURN, 1
END

PRO a__define
struct = { a, int: 0, str: '' }
END

## Class b

FUNCTION b::Init, a
self.reference=a
RETURN, 1
END
PRO b::test
self.reference.int=9
END
PRO b__define
struct = { b, $
reference: OBJ_NEW() }
END

#############################

My code will be something like:
a=OBJ_NEW('a')
b=OBJ_NEW('b',a)
b->Test

The statement self.reference.int=9 in the method b::test does not work
at all. Do you know if there is a way to do that without using the
GetProperty and SetProperty methods ?
Thanks,
nata
[Message index]
 
Read Message
Previous Topic: Re: multi plot with superposed axis
Next Topic: how to change button names on the dialog_message

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

Current Time: Fri Oct 10 06:17:00 PDT 2025

Total time taken to generate the page: 1.28210 seconds