Last change
on this file since 232 was
232,
checked in by pinsard, 17 years ago
|
improvements/corrections of some *.pro headers
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
950 bytes
|
Rev | Line | |
---|
[2] | 1 | ;+ |
---|
| 2 | ; |
---|
[224] | 3 | ; @file_comments |
---|
[133] | 4 | ; erase a variable |
---|
[224] | 5 | ; same thing that delvar but usable in a program and usable |
---|
[133] | 6 | ; for one variable simultaneously |
---|
[2] | 7 | ; |
---|
[224] | 8 | ; @categories |
---|
| 9 | ; Utilities |
---|
| 10 | ; |
---|
| 11 | ; @param VARNAME {in}{required} |
---|
[136] | 12 | ; The name of the variable we want erase |
---|
[2] | 13 | ; |
---|
[136] | 14 | ; @examples |
---|
| 15 | ; IDL> a=1 |
---|
| 16 | ; IDL> undefine,a |
---|
| 17 | ; % Compiled module: UNDEFINE. |
---|
| 18 | ; IDL> help, a |
---|
| 19 | ; A UNDEFINED = <Undefined> |
---|
[2] | 20 | ; |
---|
[224] | 21 | ; @history |
---|
| 22 | ; trouve sur la page web de D.Fanning |
---|
[232] | 23 | ; <a href="http://www.dfanning.com"/> : |
---|
[224] | 24 | ;QUESTION: How do I make an IDL variable have a type "undefined"? |
---|
[2] | 25 | ;ANSWER: At the main IDL level you can use the IDL procedure DELVAR to |
---|
| 26 | ;delete an IDL variable and make it undefined. Inside of procedures |
---|
| 27 | ;and functions, I use this little program named UNDEFINE that I got |
---|
| 28 | ;from Andrew Cool at the DSTO High Frequency Radar Division in |
---|
| 29 | ;Adelaide, Australia. |
---|
| 30 | ; |
---|
[224] | 31 | ; @version |
---|
| 32 | ; $Id$ |
---|
[136] | 33 | ; |
---|
[2] | 34 | ;- |
---|
[114] | 35 | ; |
---|
[231] | 36 | PRO undefine, varname |
---|
| 37 | ; |
---|
[114] | 38 | compile_opt idl2, strictarrsubs |
---|
| 39 | ; |
---|
[2] | 40 | tempvar = SIZE(TEMPORARY(varname)) |
---|
| 41 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.