[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Including files

Martin Schultz wrote:

> Liam Gumley wrote:
> >
> >
> > So do I, but I always make sure I've had my coffee first :-)
> >
> > The script above generates a syntax error at the ENDIF line when
> > included with
> >
> > @myinclude.pro
> >
> oh je! you ask for tested software? I'll sure get my coffee next time
> round...
> But it does work in procedures (or functions), just not in $MAIN$ or if
> included at the prompt.
> So at least we now know how to prevent someone from using common blocks
> in $MAIN$ ;-)
> Cheers,
> Martin.

I will remind that's  the extension .pro is not necessary but you should write a
space and a comment statement behind the include statement.
If you don't it will never found on unix sytems if it's written on a NT IDL.

@myinclude ;