ITT Rule IDL Version 7.0 Manuale Utente Pagina 185

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 430
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 184
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.
Vedere la pagina 184
1 2 ... 180 181 182 183 184 185 186 187 188 189 190 ... 429 430

Commenti su questo manuale

Nessun commento