source: trunk/SRC/Utilities/undefine.pro @ 325

Last change on this file since 325 was 325, checked in by pinsard, 17 years ago

modification of some headers (+some corrections) to prepare usage of the new idldoc

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