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_html_output/ToBeReviewed/STRUCTURE/chkstru.html

    r338 r402  
    115115 
    116116          <h3>Return value</h3><div class="preformat"> 
    117  CHKSTRU returns 1 if successful, otherwise 0. 
     117 1 if successful, otherwise 0. 
    118118</div> 
    119119 
     
    151151          <div class="comments"> 
    152152 A string or string array with field names to  
    153  be contained in STRUCTURE. CHKSTRU returns 1 (true) 
    154  only if all field names are contained in STRUCTURE. 
     153 be contained in STRUCTURE. 
     154 
     155 CHKSTRU returns 1 (true) only if all field names are contained in STRUCTURE. 
     156 
    155157 The entries of FIELDS may be upper or lowercase. 
    156158</div> 
     
    176178            <div class="comments"> 
    177179 A named variable that will contain the indices of 
    178  the required field names in the structure. They can then 
    179  be assessed through structure.(index[i]) . Index will 
    180  contain -1 for all fields entries that are not in the 
    181  structure. 
     180 the required field names in the structure.  
     181 
     182 They can then be assessed through structure.(index[i]).  
     183 
     184 Index will contain -1 for all fields entries that are not in the structure. 
    182185</div> 
    183186             
     
    194197         
    195198            <div class="comments"> 
    196  set this keyword to return an error message  
    197  in case of an error. 
     199 set this keyword to return an error message in case of an error. 
    198200</div> 
    199201             
     
    210212         
    211213            <div class="comments"> 
    212  set this keyword to extract a fields from the 
    213  structure.  -1 is return is fields or structure. are 
    214  incorrect. 
     214 set this keyword to extract a field from the structure.   
     215 -1 is return if field or structure are incorrect. 
    215216</div> 
    216217             
     
    218219 
    219220          <h3>Examples</h3><div class="preformat"> 
    220         test = { a:1, b:2, c:3 } 
    221         required = ['a','c'] 
    222         if CHKSTRU(test,required) then print,'found a and c.' 
    223         IDL> print, CHKSTRU(test,'b') 
     221 
     222   IDL> test = { a:1, b:2, c:3 } 
     223   IDL> required = ['a','c'] 
     224   IDL> if CHKSTRU(test,required) then print,'found a and c.' 
     225   IDL> print, CHKSTRU(test,'b') 
    224226           1 
    225         IDL> print, CHKSTRU(test,'b',/extract) 
     227   IDL> print, CHKSTRU(test,'b',/extract) 
    226228               2 
    227229</div> 
     
    229231           
    230232          <h4>Version</h4><div class="preformat"> 
    231  $Id: chkstru.pro 327 2007-12-13 16:22:35Z pinsard $ 
     233 $Id: chkstru.pro 375 2008-08-08 15:55:40Z pinsard $ 
    232234 
    233235 Copyright (C) 1998, Martin Schultz, Harvard University 
     
    242244</div> 
    243245          <h4>History</h4><div class="preformat"> 
    244         mgs, 02 Mar 1998: VERSION 1.00 
    245         mgs, 07 Apr 1998: - second parameter (FIELDS) now optional 
    246         12 Jan 2001: EXTRACT keyword by S. Masson (smasson@lodyc.jussieu.fr)  
     246  - mgs, 02 Mar 1998: VERSION 1.00 
     247  - mgs, 07 Apr 1998: - second parameter (FIELDS) now optional 
     248  - 12 Jan 2001: EXTRACT keyword by S. Masson (smasson@lodyc.jussieu.fr)  
    247249</div> 
    248250           
Note: See TracChangeset for help on using the changeset viewer.