legacy/IDLv4tov5/
isfunction.pro
top isfunction
result = isfunction(proname, outnames, numline)
NAME: ISFUNCTION() PURPOSE: Determine whether the IDL program(s) in a file are procedures or functions. Needed because the intrinisc RESOLVE_ROUTINE and ROUTINE_INFO() procedures require the user to know beforehand whether to supply the /IS_FUNCTION or /FUNCTION keywords. CALLING SEQUENCE: status = ISFUNCTION( filename, [ outnames, numlines] INPUT: filename = scalar string giving complete specification if file name (include .pro extension) OUTPUT: status - integer vector with number of elements equal to the number of routines in the file. Each status value consists of 0 or 1 1 - routine is an IDL function 0 - routine is an IDL procedure If no valid IDL functions or procedures are found in the file, then ISFUNCTION() returns a scalar value of -1 OPTIONAL OUTPUTS: outnames - vector string, giving name of each IDL procedure or function in the file numlines - integer vector, giving the number of lines in each IDL procedure or function in the file PROCEDURE CALLS: FDECOMP REVISION HISTORY: Written, W. Landsman June, 1995
Parameters
- proname
- outnames
- numline
File attributes
Modification date: | Tue Oct 1 14:16:37 2013 |
Lines: | 105 |