Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  IDL Reference  >  Programming and Control  >  ROUTINE_DIR

ROUTINE_DIR

ROUTINE_DIR

The ROUTINE_DIR function returns the path to the calling routine.

Examples


Create the following routine and save it in a file called ex_routine_dir.pro:

pro ex_routine_dir
   ; Where is my current routine located?
   print, ROUTINE_DIR()
end

When you compile and run this procedure, IDL prints (depending upon your paths):

C:\Users\myname\IDLWorkspace\Default\

Syntax


Result = ROUTINE_DIR( )

Return Value


Returns a scalar string containing the fully-qualified path of the calling routine, including the trailing slash character.

Arguments


None.

Keywords


None.

Version History


8.7

Introduced

See Also


ROUTINE_INFO, ROUTINE_FILEPATH



© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us