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

Last change on this file since 153 was 136, checked in by pinsard, 18 years ago

some improvements and corrections in some .pro file according to
aspell and idldoc log file

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1;------------------------------------------------------------
2;------------------------------------------------------------
3;------------------------------------------------------------
4;+
5;
6; @file_comments
7; erase a variable
8; same thing that delvar but usable in a program and usable
9; for one variable simultaneously
10;
11; @categories utilities 
12;
13; @param varname {in}{required}
14; The name of the variable we want erase
15;
16; @examples
17; IDL> a=1
18; IDL> undefine,a
19; % Compiled module: UNDEFINE.
20; IDL> help, a
21; A               UNDEFINED = <Undefined>
22;
23; @history trouve sur la page web de D.Fanning
24; 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 DELVAR to
27;delete an IDL variable and make it undefined. Inside of procedures
28;and functions, I use this little program named UNDEFINE that I got
29;from Andrew Cool at the DSTO High Frequency Radar Division in
30;Adelaide, Australia.
31;
32; @version $Id$
33;
34;-
35;------------------------------------------------------------
36;------------------------------------------------------------
37;------------------------------------------------------------
38   PRO UNDEFINE, varname 
39;
40  compile_opt idl2, strictarrsubs
41;
42   tempvar = SIZE(TEMPORARY(varname))
43   END
44
Note: See TracBrowser for help on using the repository browser.