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

Home » Public Forums » archive » Re: Help on including files
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: Help on including files [message #15019 is a reply to message #14998] Mon, 12 April 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
a_li_ba_ba@my-dejanews.com (a_li_ba_ba@my-dejanews.com) writes:

> I am working trying to include a header files inside my code. My IDLDE
> preference working directory and search path is set to default. Then I added
> path to !PATH at the top of my source file like this where header.pro is in e:
> \files\src:
>
> !PATH = !PATH + "; e:\files\src"
> @header.pro
>
> I then compile and it complains that header.pro can't be found.

This is your problem. You are trying to compile the file
that has this in it. What you want to do with these two
commands is run them as if you were typing them at the
IDL command line. In other words, you want them in a batch
file.

I would put the !Path line in an IDL startup file. Then
you could include the @header file in any procedure and
it would work perfectly. (If you want it to run quickly,
put it at the start of the path and not at the end.)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: medivision file reader
Next Topic: Re: Problems with JULDAY and CALDAT (aka Y1.584K bug)

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

Current Time: Fri Oct 10 17:46:17 PDT 2025

Total time taken to generate the page: 0.47847 seconds