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

Home » Public Forums » archive » Re: include files in IDL programs
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: include files in IDL programs [message #22503] Fri, 17 November 2000 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Randall Skelton <rhskelto@atm.ox.ac.uk> writes:

> Hello all,

> This is a longshot but is there any way to have an 'include file' in IDL.
> i.e. I have a data structure which is rather complicated (and big in type)
> and I don't want to see it in every program/subroutine that I write. Is
> there anyway just to have it included with a simple '#include blah.pro' or
> somthing similar?

> Thanks in advance,

> Randall

Randall:

The way includes are done is with a "@" sign at the beginning of a line,
followed by the name of the file. Note that you can't have *any* spaces in
front of the "@" sign. For example,

PRO FXBREAD, UNIT, DATA, COL, ROW, NOSCALE=NOSCALE, VIRTUAL=VIR, $
DIMENSIONS=DIMENSIONS, NANVALUE=NANVALUE, ERRMSG=ERRMSG, $
NOIEEE=NOIEEE
@fxbintable
ON_ERROR, 2
ON_IOERROR, HANDLE_IO_ERROR
<etc>

inserts the contents of the file fxbintable.pro (in !PATH) into the program at
that point.

William Thompson
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: structure__define
Next Topic: IDL Bug? (Re: include files in IDL programs)

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

Current Time: Tue Dec 02 14:42:44 PST 2025

Total time taken to generate the page: 0.00241 seconds