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

Home » Public Forums » archive » Re: 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
Re: Multiple values from a function? [message #20567 is a reply to message #20562] Wed, 05 July 2000 00:00 Go to previous messageGo to previous message
Simon de Vet is currently offline  Simon de Vet
Messages: 36
Registered: May 2000
Member
Simon de Vet wrote:

> 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.

I have managed to solve my problem, but in a way unlike anything mentioned
here so far.

In the end, I managed to figure out how structures work. I put all the
arrays and variables into one structure at the end of my function, and
passed this to the main program. Here, I was able to take it apart again,
and get all the original arrays and variables back.

I don't know if this is a better or worse method than those mentioned, but
it works so I'll keep using it for now.


Simon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Vertices and Polygons
Next Topic: Impressions on IDL for Macintosh?

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

Current Time: Sat Oct 11 03:37:47 PDT 2025

Total time taken to generate the page: 1.12053 seconds