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

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