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

Home » Public Forums » archive » Re: Error in Object
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: Error in Object [message #46057 is a reply to message #46054] Thu, 03 November 2005 09:05 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
shi_lee@hotmail.com writes:


> Hi, i am trying to set property of a IDLgrView, but i received an error.
> The code is as follows:
>
> pro demo_draw, state, oWindow, oView, debug=debug
> ....
> oView property is something i want to change. and I received an error:
> "Object reference type required in this context: OVIEW.". If instead of
> having [100,100,100] as the color, i use [state.BR, state.BB, state.BG],
> which are data saved in state structure, i receive another error:
> "Object instance data is not visible outside class methods: STATE". Does
> anyone know why? Thank you.

My guess is that you have mixed up the order in which
you passed the positional parameters to DEMO_DRAW. I think
your "state" is really the "oView", and visa versa.

Cheers,

David

P.S. Are you sure you are ready for object graphics? Lots
of complicated programming is going to have to be done there. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Windows IDL DLM with Cygwin
Next Topic: Re: Zooming in place

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

Current Time: Fri Oct 10 00:39:08 PDT 2025

Total time taken to generate the page: 0.31895 seconds