Ignore:
Timestamp:
09/14/07 13:05:09 (17 years ago)
Author:
smasson
Message:

allways return back a scalar is /firstfound used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/loadgrid.pro

    r232 r285  
    4040  meshfile = strtrim(meshfile, 2) 
    4141; try to find a .pro file with this name... 
    42   filepro = (find(meshfile[0], /firstfound, /onlypro))[0] 
     42  filepro = find(meshfile[0], /firstfound, /onlypro) 
    4343; if this is an idl batch file or a procedure 
    4444  if filepro NE 'NOT FOUND' THEN BEGIN 
     
    5252    ENDCASE 
    5353  ENDIF ELSE BEGIN 
    54     filenc = (find(meshfile[0], /firstfound, /onlync))[0] 
     54    filenc = find(meshfile[0], /firstfound, /onlync) 
    5555    if filenc EQ 'NOT FOUND' THEN stop 
    5656    listing = 'initncdf, ''' + filenc +'''' 
Note: See TracChangeset for help on using the changeset viewer.