Re: Problem with COMMON block [message #14908 is a reply to message #14800] |
Thu, 01 April 1999 00:00  |
Michael Werger
Messages: 34 Registered: May 1997
|
Member |
|
|
VU KHAC Tri wrote:
>
> Hi folks,
>
> I have written 2 following procedures, but IDL compilator signals an
> error at
> using "StdImage.FileName" since it does not know the definition of
> StdImage in the COMMON block.
> Could you tell my the reason and your solution ?
> pro WindowLoadImage_event, event
> COMMON SHAREIMAGE
change this line into:
COMMON SHAREIMAGE, StdImage, ObjImage
> WIDGET_CONTROL, event.id, GET_UVALUE = selected
> ; define a temporal type
> ...
Still doesn't work? Then try to avoid COMMON (recommended).
Just put all your required variables in a structure
and put this into the base widget uvalue or value
then you may easily read/write this again -
If you need to know more, just send me an email (but think
of the easter holidays...)
--
Michael Werger ------------o
ESA ESTEC & Praesepe B.V. |
Astrophysics Division mwerger@astro.estec.esa.nl|
| Postbus 299 http://astro.estec.esa.nl |
| 2200 AG Noordwijk +31 71 565 3783 (Voice)
o------------------- The Netherlands +31 71 565 4690 (FAX)
|
|
|