comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » undefining variables?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
undefining variables? [message #7571] Fri, 06 December 1996 00:00 Go to next message
alpha is currently offline  alpha
Messages: 49
Registered: September 1996
Member
Hello,

is there a way to undefine variables?

for some reasons it would be nice (eg. undefineing keywords..)


just look at this:

pro example

a=10l
if datatype(a) eq 'LON' then print,'yes, its long'

UNDEFINE,a

if datatype(a) eq 'UND' then print,'Thats what I want!'

end


what to take for UNDEFINE?

- delvar is only working in main-level... so it is
not usefull for me...


any help wanted...

Panther

PS: Congratulations...to the domain: dfanning.com !!!!
i am thinking about panther@jungle.com or
panther@jungle.org,
but its occupied........what a pitty!




--
Panther in the Jungle __..--''``\--....___ _..,_
-BELIEVE AND DECEIVE- _.-' .-/"; ` ``<._ ``-+'~=.
http://www.ang-physik _.-' _..--.'_ \ `(^) )
.uni-kiel.de/~hendrik ((..-' (< _ ;_..__ ; `'
Re: undefining variables [message #8419 is a reply to message #7571] Wed, 05 March 1997 00:00 Go to previous message
wonko is currently offline  wonko
Messages: 22
Registered: March 1997
Junior Member
slx@ansto.gov.au (Samantha Lane) wrote:

> Hi!,
> I'd like to undefine a variable st n_elements(var) eq 0 but
> previously n_elements(var) gt 0.
> How can I do that?

Try dummy=temporary(var), this will create a new variable 'dummy' with
var's contents, and 'var' will be undefined afterwards.

Alex
--
Alex Schuster Wonko@weird.cologne.de
alex@pet.mpin-koeln.mpg.de
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Tephigram pro?
Next Topic: Problems with HP-UX 10.20

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 20:03:30 PDT 2025

Total time taken to generate the page: 0.00902 seconds