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

Last change on this file since 372 was 371, checked in by pinsard, 16 years ago

improvements of headers (alignments of IDL prompt in examples)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 999 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
[371]15;   IDL> a=1
16;   IDL> undefine,a
[136]17; % Compiled module: UNDEFINE.
[371]18;   IDL> help, a
[136]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;-
[231]35PRO undefine, varname
36;
[114]37  compile_opt idl2, strictarrsubs
38;
[2]39   tempvar = SIZE(TEMPORARY(varname))
40   END
Note: See TracBrowser for help on using the repository browser.