Changeset 402 for trunk/SRC/Documentation/idldoc_assistant_output/ToBeReviewed/STRUCTURE/chkstru.html
- Timestamp:
- 07/23/09 11:18:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_assistant_output/ToBeReviewed/STRUCTURE/chkstru.html
r338 r402 80 80 81 81 <h3>Return value</h3> 82 CHKSTRU returns1 if successful, otherwise 0.82 1 if successful, otherwise 0. 83 83 84 84 … … 119 119 120 120 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 123 125 The entries of FIELDS may be upper or lowercase. 124 126 … … 144 146 145 147 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. 150 153 151 154 … … 163 166 164 167 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. 167 169 168 170 … … 180 182 181 183 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. 185 186 186 187 … … 188 189 189 190 <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') 194 196 1 195 197 IDL> print, CHKSTRU(test,'b',/extract) 196 198 2 197 199 … … 199 201 200 202 <h4>Version</h4> 201 $Id: chkstru.pro 3 27 2007-12-13 16:22:35Z pinsard $203 $Id: chkstru.pro 375 2008-08-08 15:55:40Z pinsard $ 202 204 203 205 Copyright (C) 1998, Martin Schultz, Harvard University … … 212 214 213 215 <h4>History</h4> 214 215 216 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) 217 219 218 220
Note: See TracChangeset
for help on using the changeset viewer.