Changeset 285
- Timestamp:
- 09/14/07 13:05:09 (17 years ago)
- Location:
- trunk/SRC
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Colors/lct.pro
r260 r285 44 44 if keyword_set(file) then nametbl = file ELSE nametbl = 'palette.tbl' 45 45 ; look for nametbl file 46 nametbl = (find(nametbl, /firstfound, /nopro))[0]46 nametbl = find(nametbl, /firstfound, /nopro) 47 47 if nametbl NE 'NOT FOUND' then BEGIN 48 48 if n_elements(ex) NE 0 then $ -
trunk/SRC/Colors/newpalette.pro
r260 r285 42 42 ; look for nametbl file 43 43 namesave = nametbl 44 nametbl = (find(nametbl, /firstfound, /nopro))[0]44 nametbl = find(nametbl, /firstfound, /nopro) 45 45 ; no file nametbl found, do we create one? 46 46 if nametbl EQ 'NOT FOUND' then BEGIN -
trunk/SRC/Colors/xlct.pro
r262 r285 501 501 ;----------------------------------------------------------------------------- 502 502 IF N_ELEMENTS(file) GT 0 THEN filename = file ELSE BEGIN 503 filename = (find('palette.tbl', /firstfound, /nopro))[0]503 filename = find('palette.tbl', /firstfound, /nopro) 504 504 if filename EQ 'NOT FOUND' then filename=filepath('colors1.tbl',subdir=['resource', 'colors']) 505 505 ENDELSE -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/loadgrid.pro
r232 r285 40 40 meshfile = strtrim(meshfile, 2) 41 41 ; try to find a .pro file with this name... 42 filepro = (find(meshfile[0], /firstfound, /onlypro))[0]42 filepro = find(meshfile[0], /firstfound, /onlypro) 43 43 ; if this is an idl batch file or a procedure 44 44 if filepro NE 'NOT FOUND' THEN BEGIN … … 52 52 ENDCASE 53 53 ENDIF ELSE BEGIN 54 filenc = (find(meshfile[0], /firstfound, /onlync))[0]54 filenc = find(meshfile[0], /firstfound, /onlync) 55 55 if filenc EQ 'NOT FOUND' THEN stop 56 56 listing = 'initncdf, ''' + filenc +'''' -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/selectfile.pro
r243 r285 85 85 'meshload':BEGIN 86 86 widget_control, event.id, get_value = filename 87 filename = (find(filename[0], /onlypro, /firstfound))[0]87 filename = find(filename[0], /onlypro, /firstfound) 88 88 if filename EQ 'NOT FOUND' then begin 89 89 widget_control, event.id, set_value = '' … … 150 150 meshload = meshload[0] 151 151 IF meshload EQ '' THEN return 152 meshload = (find(meshload[0], /onlypro, /firstfound))[0]152 meshload = find(meshload[0], /onlypro, /firstfound) 153 153 if meshload EQ 'NOT FOUND' then begin 154 154 widget_control, meshload_id, set_value = '' -
trunk/SRC/Utilities/find.pro
r280 r285 20 20 ; 21 21 ; @keyword FIRSTFOUND 22 ; activate this keyword to stop looking for the file as soon as we found one. 22 ; activate this keyword to stop looking for the file as soon as we 23 ; found one. Return a scalar string containing the first file found 23 24 ; 24 25 ; @keyword IODIRECTORY {type=scalar string or array of strings} {default=['.',!path]} … … 164 165 ENDIF ELSE found = file_search(dir + '/' + base, _extra = ex) 165 166 IF found[0] NE '' THEN BEGIN 166 IF keyword_set(firstfound) THEN BEGIN 167 IF keyword_set(unique) THEN return, found[uniq(found, sort(found))] $ 168 ELSE return, found 169 ENDIF 167 IF keyword_set(firstfound) THEN return, found[0] 170 168 fileout = [fileout, found] 171 169 ENDIF -
trunk/SRC/Utilities/protype.pro
r242 r285 40 40 compile_opt idl2, strictarrsubs 41 41 ; 42 filepro = (find(file[0], /onlypro, /firstfound))[0]42 filepro = find(file[0], /onlypro, /firstfound) 43 43 if filepro EQ 'NOT FOUND' then return, -1 44 44 name = file_basename(filepro, '.pro') -
trunk/SRC/Utilities/xfile.pro
r266 r285 65 65 ; 66 66 ; find the file and display it! 67 pfile = find(filename, /first _found)67 pfile = find(filename, /firstfound) 68 68 if (pfile NE 'NOT FOUND') then begin 69 69 xdisplayfile, pfile[0], _EXTRA = ex -
trunk/SRC/Utilities/xhelp.pro
r266 r285 68 68 ; 69 69 ; find the file and display it! 70 pfile = (find(filename, /first_found))[0]70 pfile = find(filename, /firstfound) 71 71 ; read it 72 72 IF (pfile NE 'NOT FOUND') THEN BEGIN
Note: See TracChangeset
for help on using the changeset viewer.