ITT Rule IDL Version 7.0 Instrukcja Użytkownika Strona 185

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 430
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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.
Przeglądanie stron 184
1 2 ... 180 181 182 183 184 185 186 187 188 189 190 ... 429 430

Komentarze do niniejszej Instrukcji

Brak uwag