A SERVICE OF

logo

Chapter 7: Creating an Operation 185
iTool Developer’s Guide Unregistering an Operation
Alternatively, to generate a list of relative identifiers for all operations registered with
the current tool, use the following statements:
void = ITGETCURRENT(TOOL=oTool)
opslist = oTool->FindIdentifiers(/OPERATIONS)
FOR i = 0, N_ELEMENTS(opslist)-1 DO PRINT, $
STRMID(opslist[i], STRPOS(opslist[i], '/OPERATIONS', $
/REVERSE_SEARCH)+1)
Note that the string in the call to STRPOS must be in upper case.
To refine the search so that only operations in the “Transform” folder are found,
specify a search term as the argument to the FindIdentifiers method:
void = ITGETCURRENT(TOOL=oTool)
opslist = oTool->FindIdentifiers('*transform*', /OPERATIONS)
FOR i = 0, N_ELEMENTS(opslist)-1 DO PRINT, $
STRMID(opslist[i], STRPOS(opslist[i], '/OPERATIONS', $
/REVERSE_SEARCH)+1)
See “IDLitTool::FindIdentifiers” (IDL Reference Guide) for details.