The features described in this topic are obsolete
and should not be used in new IDL code.
GETHELP
This routine is obsolete and should not be used in new IDL code.
The GETHELP function returns information on variables defined at the program level from which GETHELP is called. The function builds a string array that contains information that follows the format used by the IDL HELP command.
When called without an argument, GETHELP returns a string array that normally contains variable data that is in the same format as used by the IDL HELP procedure. The variables in this list are those defined for the routine (or program level) that called GETHELP. If there are no variables defined, or the specified variable does not exist, GETHELP returns a null string. Other information can be obtained by setting keywords.
Syntax
Result = GETHELP([Variable])
Arguments
Variable
A scalar string that contains the name of the variable from which to get information. If this argument is omitted, GETHELP returns an array of strings where each element contains information on a separate variable, one element for each defined variable.
Keywords
FULLSTRING
Normally a string that is longer than 45 chars is truncated and followed by "..." just like the HELP command. Setting this keyword will cause the full string to be returned.
FUNCTIONS
Setting this keyword will cause the function to return all current IDL compiled functions.
ONELINE
If a variable name is greater than 15 characters it is usually returned as 2 two elements of the output array (Variable name in 1st element, variable info in the 2nd element). Setting this keyword will put all the information in one string, separating the name and data with a space.
PROCEDURES
Setting this keyword will cause the function to return all current IDL compiled procedures.
SYS_PROCS
Setting this keyword will cause the function to return the names of all IDL system (built-in) procedures.
SYS_FUNCS
Setting this keyword will cause the function to return the names of all IDL system (built-in) functions.
Note
RESTRICTIONS: Due to the difficulties in determining if a variable is of type associate, the following conditions will result in the variable being listed as a structure. These conditions are:
Another difference between this routine and the IDL help command is that if a variable is in a common block, the common block name is not listed next to the variable name. Currently there is no method available to get the common block names used in a routine.
Example
To obtain a listing in a help format of the variables contained in the current routine you would make the following call:
HelpData = GetHelp()
The variable HelpData would be a string array containing the requested information.