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

Home » Public Forums » archive » Multiple values 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
Multiple values from a function? [message #20574] Tue, 04 July 2000 00:00
Simon de Vet is currently offline  Simon de Vet
Messages: 36
Registered: May 2000
Member
I have a function that does a whole lot (it started out as an
independent program). It works very well when returning one of it's
calculated arrays.

It also produces a number of other arrays which I'd like to have access
to. Unfortunately, I have discovered that a function can only return
one value.

How can I get the other arrays out of it? The code is intertwined, so it
would be hard to break into 2 or 3 independent functions.

Concatenation of arrays is not an option, since they are all of
different sizes. I can get around the problem by doing the calculation
in the main level program instead of in a function, but that's a little
ackward. Looking at the help, structures look like a possibility, but I
don't understand how they work.

Help!


Simon
[Message index]
 
Read Message
Previous Topic: Automatic Brain Detection from MRI scans
Next Topic: Please repost last week mails about fast spline interpolation

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

Current Time: Fri Oct 10 07:26:55 PDT 2025

Total time taken to generate the page: 1.03796 seconds