Last change
on this file since 114 was
114,
checked in by smasson, 18 years ago
|
new compilation options (compile_opt idl2, strictarrsubs) in each routine
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.3 KB
|
Rev | Line | |
---|
[2] | 1 | ;------------------------------------------------------------ |
---|
| 2 | ;------------------------------------------------------------ |
---|
| 3 | ;------------------------------------------------------------ |
---|
| 4 | ;+ |
---|
| 5 | ; NAME: undefine |
---|
| 6 | ; |
---|
| 7 | ; PURPOSE: effacer une variable |
---|
| 8 | ; meme chose que delvar mais utiulisable ds un programme et |
---|
| 9 | ; utilisable que pour une variable a la fois |
---|
| 10 | ; |
---|
| 11 | ; CATEGORY: |
---|
| 12 | ; |
---|
| 13 | ; CALLING SEQUENCE: UNDEFINE, varname |
---|
| 14 | ; |
---|
| 15 | ; INPUTS: varname: la variable a detruire |
---|
| 16 | ; |
---|
| 17 | ; EXAMPLE: |
---|
| 18 | ; |
---|
| 19 | ; IDL> a=1 |
---|
| 20 | ; IDL> undefine,a |
---|
| 21 | ; % Compiled module: UNDEFINE. |
---|
| 22 | ; IDL> help, a |
---|
| 23 | ; A UNDEFINED = <Undefined> |
---|
| 24 | ; |
---|
| 25 | ; MODIFICATION HISTORY: trouve sur la page web de D.Fanning |
---|
| 26 | ; http://www.dfanning.com : |
---|
| 27 | ;QUESTION: How do I make an IDL variable have a type "undefined"? |
---|
| 28 | ;ANSWER: At the main IDL level you can use the IDL procedure DELVAR to |
---|
| 29 | ;delete an IDL variable and make it undefined. Inside of procedures |
---|
| 30 | ;and functions, I use this little program named UNDEFINE that I got |
---|
| 31 | ;from Andrew Cool at the DSTO High Frequency Radar Division in |
---|
| 32 | ;Adelaide, Australia. |
---|
| 33 | ; |
---|
| 34 | ;- |
---|
| 35 | ;------------------------------------------------------------ |
---|
| 36 | ;------------------------------------------------------------ |
---|
| 37 | ;------------------------------------------------------------ |
---|
| 38 | PRO UNDEFINE, varname |
---|
[114] | 39 | ; |
---|
| 40 | compile_opt idl2, strictarrsubs |
---|
| 41 | ; |
---|
[2] | 42 | tempvar = SIZE(TEMPORARY(varname)) |
---|
| 43 | END |
---|
| 44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.