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