Ignore:
Timestamp:
03/14/07 18:13:39 (17 years ago)
Author:
pinsard
Message:

improvements of some *.pro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Utilities/xfile.pro

    r163 r223  
    44;+ 
    55; 
    6 ; @file_comments  
     6; @file_comments 
    77; display in a widget an ASCII file. 
    8 ; It is the same thing that xdisplayfile but here, we use it  
    9 ; to display the content of a procedure or of a function,  
     8; It is the same thing that xdisplayfile but here, we use it 
     9; to display the content of a procedure or of a function, 
    1010; even if it is not in the current directory (thanks to the path). 
    1111; 
    12 ; @categories  
     12; @categories 
    1313; Utilities 
    1414; 
    15 ; @param FILENAME {in}{required}  
    16 ; It is the name of the procedure or of the function  
     15; @param FILENAME {in}{required} 
     16; It is the name of the procedure or of the function 
    1717; we want to display (with or without .pro at the end). 
    1818; 
    19 ; @keyword _EXTRA  
     19; @keyword _EXTRA 
    2020; used to pass your keywords 
    2121; 
    22 ; @examples xfile,'plt' 
     22; @examples 
     23; IDL> xfile,'plt' 
    2324; 
    24 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    25 ;                       7/1/99 
    26 ;                       6/7/1999: compatibility mac and windows 
     25; @history 
     26; Sebastien Masson (smasson\@lodyc.jussieu.fr) 
     27; 7/1/99 
     28; 6/7/1999: compatibility mac and windows 
    2729; 
    28 ; @version $Id$ 
     30; @version 
     31; $Id$ 
    2932; 
    3033;- 
     
    3841pfile = strlowcase(filename) 
    3942; 
    40 ; we have to find the full name.  
     43; we have to find the full name. 
    4144; 
    42    if strpos(pfile,".pro") lt 0 then pfile=pfile+".pro"  
     45   if strpos(pfile,".pro") lt 0 then pfile=pfile+".pro" 
    4346   thisOS = strupcase(strmid(!version.os_family, 0, 3)) 
    4447   CASE thisOS of 
     
    5659   i = 0 
    5760   repeat begin 
    58       res = findfile(pfile[i])  
     61      res = findfile(pfile[i]) 
    5962      i = i+1 
    60    endrep until res[0] NE '' OR i EQ n_elements(pfile)  
     63   endrep until res[0] NE '' OR i EQ n_elements(pfile) 
    6164   if res[0] NE  '' then BEGIN 
    6265; we open the file in a widget 
    6366   xdisplayfile, pfile[i-1], _extra = ex 
    64    ENDIF ELSE ras = report('le fichier demande n''existe pas...') 
     67   ENDIF ELSE ras = report('file does not exist ...') 
    6568; 
    6669; 
Note: See TracChangeset for help on using the changeset viewer.