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

Home » Public Forums » archive » Re: Problem Compiling and Using Functions
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: Problem Compiling and Using Functions [message #46805 is a reply to message #46804] Wed, 04 January 2006 15:51 Go to previous messageGo to previous message
someone[1] is currently offline  someone[1]
Messages: 2
Registered: January 2006
Junior Member
On Wed, 04 Jan 2006 17:48:28 -0500, Paul Van Delst
<Paul.vanDelst@noaa.gov> wrote:

> David Fanning wrote:
>> someone@someplace.com writes:
>>
>>
>>> I'm having trouble getting simple functions to work.
>>>
>>> It's probably a simple error, but I can't figure it out. I'm using IDL
>>> 5.6 and ENVI 3.6.
>>>
>> Functions return a value. Try writing the function call like this:
>>
>> void = extract_tiles_get_tile(fid)
>
> Man, I heard the "D'OH!" all the way over here!
>
> :o)

DOH!... Doh!... doh!... (echoing off into the distance) :)

Thanks for your fast response. It works now.

I'm new to IDL and I'm not used there being this difference between
functions and procedures.

So, procedures don't return anything and functions *always* have to
return something and the calling function/procedure has handle them
correctly.

Thanks,
Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: archivos
Next Topic: Re: Unicode Question

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

Current Time: Sat Nov 29 20:26:46 PST 2025

Total time taken to generate the page: 0.72404 seconds