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

Home » Public Forums » archive » Re: Return statement must have 1 value?
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
Re: Return statement must have 1 value? [message #10099] Wed, 22 October 1997 00:00
D.Kennedy is currently offline  D.Kennedy
Messages: 26
Registered: January 1997
Junior Member
In article <62j96i$315$1@news.qub.ac.uk>,
D.Kennedy@qub.ac.uk (David Kennedy) writes:
> % Return statement in functions must have 1 value.
> return answer

Thanks to those who emailed to point out that I had forgotten the
comma in the above statement. I am, of course, a complete fool.

(I wouldn't mind but I had three other functions in the same file
with the correct syntax. I _knew_ I had been staring at something
obvious...)
--
David Kennedy, Dept. of Pure & Applied Physics, Queen's University of Belfast
Email: D.Kennedy@Queens-Belfast.ac.uk | URL: http://star.pst.qub.ac.uk/~dcjk/
My .sig was so clever that it actually escaped!
Re: Return statement must have 1 value? [message #10105 is a reply to message #10099] Tue, 21 October 1997 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
David Kennedy has really been working too many late hours
when he writes:

> In the course of some quick and dirty data reduction I've hit a weird
> bug with the RETURN keyword. Its really confusing me (as well as stopping
> me from progressing with the work!). Help appreciated.
>
> It says:
> return answer
> ^
> % Return statement in functions must have 1 value.

Uh, try a comma, David. ;-)

Return, answer

Cheers,

(And go get some sleep, man!)

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: german umlaut
Next Topic: Putting bytes into structures

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

Current Time: Wed Oct 08 13:40:00 PDT 2025

Total time taken to generate the page: 0.00573 seconds