Changeset 285 for trunk/SRC/ToBeReviewed


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

allways return back a scalar is /firstfound used

Location:
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX
Files:
2 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 +'''' 
  • trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/selectfile.pro

    r243 r285  
    8585    'meshload':BEGIN 
    8686      widget_control, event.id, get_value = filename 
    87       filename = (find(filename[0], /onlypro, /firstfound))[0] 
     87      filename = find(filename[0], /onlypro, /firstfound) 
    8888      if filename EQ 'NOT FOUND' then begin 
    8989        widget_control, event.id, set_value = '' 
     
    150150          meshload = meshload[0] 
    151151          IF meshload EQ '' THEN return 
    152           meshload = (find(meshload[0], /onlypro, /firstfound))[0] 
     152          meshload = find(meshload[0], /onlypro, /firstfound) 
    153153          if meshload EQ 'NOT FOUND' then begin 
    154154            widget_control, meshload_id, set_value = '' 
Note: See TracChangeset for help on using the changeset viewer.