Ignore:
Timestamp:
07/23/09 11:18:49 (15 years ago)
Author:
smasson
Message:

update documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/idldoc_assistant_output/ToBeReviewed/STRUCTURE/chkstru.html

    r338 r402  
    8080 
    8181    <h3>Return value</h3> 
    82  CHKSTRU returns 1 if successful, otherwise 0. 
     82 1 if successful, otherwise 0. 
    8383 
    8484 
     
    119119     
    120120 A string or string array with field names to  
    121  be contained in STRUCTURE. CHKSTRU returns 1 (true) 
    122  only if all field names are contained in STRUCTURE. 
     121 be contained in STRUCTURE. 
     122 
     123 CHKSTRU returns 1 (true) only if all field names are contained in STRUCTURE. 
     124 
    123125 The entries of FIELDS may be upper or lowercase. 
    124126 
     
    144146     
    145147 A named variable that will contain the indices of 
    146  the required field names in the structure. They can then 
    147  be assessed through structure.(index[i]) . Index will 
    148  contain -1 for all fields entries that are not in the 
    149  structure. 
     148 the required field names in the structure.  
     149 
     150 They can then be assessed through structure.(index[i]).  
     151 
     152 Index will contain -1 for all fields entries that are not in the structure. 
    150153 
    151154     
     
    163166 
    164167     
    165  set this keyword to return an error message  
    166  in case of an error. 
     168 set this keyword to return an error message in case of an error. 
    167169 
    168170     
     
    180182 
    181183     
    182  set this keyword to extract a fields from the 
    183  structure.  -1 is return is fields or structure. are 
    184  incorrect. 
     184 set this keyword to extract a field from the structure.   
     185 -1 is return if field or structure are incorrect. 
    185186 
    186187     
     
    188189 
    189190    <h3>Examples</h3><pre> 
    190         test = { a:1, b:2, c:3 } 
    191         required = ['a','c'] 
    192         if CHKSTRU(test,required) then print,'found a and c.' 
    193         IDL> print, CHKSTRU(test,'b') 
     191 
     192   IDL> test = { a:1, b:2, c:3 } 
     193   IDL> required = ['a','c'] 
     194   IDL> if CHKSTRU(test,required) then print,'found a and c.' 
     195   IDL> print, CHKSTRU(test,'b') 
    194196           1 
    195         IDL> print, CHKSTRU(test,'b',/extract) 
     197   IDL> print, CHKSTRU(test,'b',/extract) 
    196198               2 
    197199 
     
    199201     
    200202    <h4>Version</h4> 
    201  $Id: chkstru.pro 327 2007-12-13 16:22:35Z pinsard $ 
     203 $Id: chkstru.pro 375 2008-08-08 15:55:40Z pinsard $ 
    202204 
    203205 Copyright (C) 1998, Martin Schultz, Harvard University 
     
    212214 
    213215    <h4>History</h4> 
    214         mgs, 02 Mar 1998: VERSION 1.00 
    215         mgs, 07 Apr 1998: - second parameter (FIELDS) now optional 
    216         12 Jan 2001: EXTRACT keyword by S. Masson (smasson@lodyc.jussieu.fr)  
     216  - mgs, 02 Mar 1998: VERSION 1.00 
     217  - mgs, 07 Apr 1998: - second parameter (FIELDS) now optional 
     218  - 12 Jan 2001: EXTRACT keyword by S. Masson (smasson@lodyc.jussieu.fr)  
    217219 
    218220     
Note: See TracChangeset for help on using the changeset viewer.