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

Home » Public Forums » archive » Re: How does IDL find functions?
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: How does IDL find functions? [message #44453 is a reply to message #44449] Fri, 17 June 2005 15:20 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
robertschaefer@gmx.de wrote:
> Hello IDL community,
>
> I'm looking for a smart solution to find functions from my own lib
> inside a self written function or procedure.
> The idea is to get a tree of embedded self written functions.
>
> My solution looks like this but I think there must be an easier way:
>
> -generate a list of functions in user-lib
> -Read the function where to search (openr)
> -compare each line (string) with the list of lib functions
> (how to extract function names egantly? -> strsplit with '=*(' :
> definitely not)
> -save coincide functions (strings) and go on searching into found
> functions
>
> Does anybody (I'm sure ;-) ) know how IDL find functions on compiling?
> This may be exactly the right (fast) way...
>
> Any ideas? ...Thanks for help...
>
> Best regards
>
> robert
>

I'm not quite sure what you want to do, but if the question is just how
IDL finds procedures and functions to compile, the following article
will tell you:

http://www.dfanning.com/tips/namefiles.html

If you want to determine the directory in which a function or procedure
was found:

http://www.dfanning.com/documents/programs.html#PROGRAMROOTD IR

The FILE_WHICH() function is also useful.

In general, you always want to put IDL program files into the IDL path.

Good luck,
Benjamin
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Need Help on IDLgrAxis !
Next Topic: Re: Fast editing of text file?

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

Current Time: Thu Oct 09 23:42:21 PDT 2025

Total time taken to generate the page: 1.67890 seconds