source: trunk/UTILITAIRE/undefine.pro @ 2

Last change on this file since 2 was 2, checked in by opalod, 22 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1;------------------------------------------------------------
2;------------------------------------------------------------
3;------------------------------------------------------------
4;+
5; NAME: undefine
6;
7; PURPOSE: effacer une variable
8;           meme chose que delvar mais utiulisable ds un programme et
9;           utilisable que pour une variable a la fois
10;
11; CATEGORY:
12;
13; CALLING SEQUENCE: UNDEFINE, varname 
14;
15; INPUTS: varname: la variable a detruire
16;
17; EXAMPLE:
18;
19;    IDL> a=1
20;    IDL> undefine,a
21;    % Compiled module: UNDEFINE.
22;    IDL> help, a
23;    A               UNDEFINED = <Undefined>
24;
25; MODIFICATION HISTORY: trouve sur la page web de D.Fanning
26; http://www.dfanning.com :
27;QUESTION: How do I make an IDL variable have a type "undefined"?
28;ANSWER: At the main IDL level you can use the IDL procedure DELVAR to
29;delete an IDL variable and make it undefined. Inside of procedures
30;and functions, I use this little program named UNDEFINE that I got
31;from Andrew Cool at the DSTO High Frequency Radar Division in
32;Adelaide, Australia.
33;
34;-
35;------------------------------------------------------------
36;------------------------------------------------------------
37;------------------------------------------------------------
38   PRO UNDEFINE, varname 
39   tempvar = SIZE(TEMPORARY(varname))
40   END
41
Note: See TracBrowser for help on using the repository browser.