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

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

only uppercase between <proidl>...</proidl> in perspective of links to /usr/local_macosx/idl/idl_6.2/idl_6.2/

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 995 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;-
35;
36PRO 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.