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 #77932] Mon, 17 October 2011 11:58 Go to previous message
Zhang Bo is currently offline  Zhang Bo
Messages: 22
Registered: October 2011
Junior Member
On Oct 17, 4:41 am, Carsten Lechte <c...@toppoint.de> wrote:
> 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

Thanks a lot!
[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: Wed Oct 08 17:28:47 PDT 2025

Total time taken to generate the page: 0.00429 seconds