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

Home » Public Forums » archive » Re: Return array from a pro
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 array from a pro [message #77942 is a reply to message #77932] Mon, 17 October 2011 01:41 Go to previous messageGo to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
On 17/10/11 03:24, Zhang Bo wrote:
> I have a subpro doing some calculation and I want to pass the result
> (several arrays) to the upper level? How to do this? or it is not
> allowed?

Just pass it as an argument:


IDL> .comp
- PRO test, arr
- arr= indgen(4)
- end
% Compiled module: TEST.
IDL> help, asdf
ASDF UNDEFINED = <Undefined>
IDL> test, asdf
IDL> help, asdf
ASDF INT = Array[4]
IDL>



chl
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Matrix in IDL
Next Topic: Pass variables into Newton or BROYDEN for solving non-linear equations

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

Current Time: Fri Oct 10 14:25:30 PDT 2025

Total time taken to generate the page: 0.88114 seconds