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

Last change on this file since 269 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
RevLine 
[2]1;+
2;
[224]3; @file_comments
[133]4; erase a variable
[260]5; same thing like <proidl>DELVAR</proidl> 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"?
[242]25;ANSWER: At the main IDL level you can use the IDL procedure <proidl>DELVAR</proidl> to
[2]26;delete an IDL variable and make it undefined. Inside of procedures
[258]27;and functions, I use this little program named <pro>undefine</pro> that I got
[2]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]36PRO 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.