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

Home » Public Forums » archive » Re: Return UNDEFINED from a function
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Return UNDEFINED from a function [message #50688] Thu, 12 October 2006 19:52 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Hadfield writes:

> Spoken like a true IEP!
>
> For what purpose have you used this feature, David?

I use it with text widgets when I want to know if the
user actually typed something into the text widget.
Maybe they cleared the text that was there, but
didn't type anything else. This is hard to check for
because the text isn't really *there*, if you know
what I mean.

Here, for example, is code from FSC_INPUTFIELD:

IF String(testValue) EQ "NULLVALUE" THEN BEGIN
Ptr_Free, self.theValue
self.theValue = Ptr_New(/Allocate_Heap)
ENDIF ELSE *self.theValue = testValue

I return self.theValue, which I guess technically
is NOT an undefined variable, but is a pointer to
an undefined variable. But I can test it to see if
it is undefined.

Humm. Maybe this isn't *exactly* what Ed was complaining
about, but I still don't think it is a bug. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: call_procedure with a dynamically created keywords list?
Next Topic: Re: difference between icontour and contour?

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

Current Time: Fri Oct 10 15:21:31 PDT 2025

Total time taken to generate the page: 1.11835 seconds