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

Home » Public Forums » archive » Re: Treating an object as a structure
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: Treating an object as a structure [message #65424 is a reply to message #65421] Wed, 04 March 2009 15:05 Go to previous messageGo to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Ok, thanks ...

With this discussion, all of a sudden I wondered how ITT people
implement the ALL keyword in GetProperty method of the objects ?
Because maybe the easiest way to get all the content of the object is
having the ALL keyword in GetProperty method. ( I know I said I don't
wanna use this method )

I don't know how can I implement this method. Maybe I will try
something like this:

PRO object::GetProperty, A=a, B=b, C=c, D=d, E=e, F=f, G=g, ALL=all

....

IF ARG_PRESENT(all) THEN BEGIN
all=CREATE_STRUCT
('A',self.a,'B',self.b,'C',self.c,'D',self.d,'E',self.e,'F', self.f,'G',self.g)
ENDIF
END

Is it correct or there are a better way to do that ?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Go figure
Next Topic: IDL help error for Scale3 procedure.

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

Current Time: Sat Oct 11 20:53:44 PDT 2025

Total time taken to generate the page: 1.59685 seconds