[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: System Variables: defining and using
- Subject: Re: System Variables: defining and using
- From: steinhh(at)ulrik.uio.no (Stein Vidar Hagfors Haugan)
- Date: 3 May 1998 09:34:39 GMT
- In-reply-to: Ray Muzic's message of Tue, 28 Apr 1998 10:02:42 -0400
- Newsgroups: comp.lang.idl-pvwave
- Organization: University of Oslo, Norway
- References: <3545E182.9F1CD663@po.cwru.edu>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:10853
> Apparently IDL
> requires the system variable to be defined at compile time.
Yes, that's right. Which means they should preferably be defined
in the IDL_STARTUP file. There is one way of getting around this,
though. In your case, write
dummy = execute("endian = !little_endian")
return,endian
instead of simply return,!little_endian. This will allow your
routine to compile, and define the system variable before it's
used.
Regards,
Stein Vidar