- Timestamp:
- 07/23/09 11:18:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_html_output/ToBeReviewed/STRING/strkeywd.html
r338 r402 145 145 146 146 <h3>Examples</h3><div class="preformat"> 147 We create a structure 148 IDL> b=get_extra(ok=111, year=[1997,1998,1999], age_capitaine=35) 149 IDL> help, b,/struct 147 148 We create a structure: 149 IDL> b=get_extra(ok=111, year=[1997,1998,1999], age_capitaine=35) 150 IDL> help, b,/struct 150 151 ** Structure <817f4bc>, 3 tags, length=10, refs=1: 151 152 AGE_CAPITAINE INT 35 152 153 OK INT 111 153 154 YEAR INT Array[3] 154 We put this structure as a string 155 IDL> a=strkeywd(b) 156 IDL> print, a 155 156 We put this structure as a string: 157 IDL> a=strkeywd(b) 158 IDL> print, a 157 159 AGE_CAPITAINE=35, OK=111, YEAR=[1997,1998,1999] 160 158 161 Now we can use the string a to pass keywords in a function thanks to execute!! 159 160 162 IDL> test=execute('c=get_extra('+a+')') 163 IDL> help, c,/struct 161 164 ** Structure <817f2dc>, 3 tags, length=10, refs=1: 162 165 AGE_CAPITAINE INT 35 … … 167 170 168 171 <h4>Version</h4><div class="preformat"> 169 $Id: strkeywd.pro 3 25 2007-12-06 10:04:53Z pinsard $172 $Id: strkeywd.pro 372 2008-08-08 12:31:53Z pinsard $ 170 173 </div> 171 174 <h4>History</h4><div class="preformat"> … … 180 183 181 184 <h4>Restrictions</h4><div class="preformat"> 182 If an element of the structure contain an array, it will be convert in a vector. 183 184 185 Beware, this function has loops, ifs ad cases everywhere. So it can 185 If an element of the structure contain an array, it will be convert in a 186 vector. 187 188 189 Beware, this function has loops, ifs and cases everywhere. So it can 186 190 not be used by big keywords (with a lot of elements which are big 187 191 arrays). The input keyword must not contain Complex floatings, structure,
Note: See TracChangeset
for help on using the changeset viewer.