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

Home » Public Forums » archive » Re: Recursive function/procedure
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: Recursive function/procedure [message #15164 is a reply to message #15150] Fri, 23 April 1999 00:00 Go to previous message
wbiagiot is currently offline  wbiagiot
Messages: 59
Registered: January 1999
Member
Tri VU KHAC <tvk@info.fundp.ac.be> wrote:
> Hi folks,
> How to write a recursive function/procedure ?
> What are programming problems of this technique in IDL ?
> Thanks for help.
> Best regards,
> Tri
>
>

Hi Tri,

Well, writing a recursive routine is pretty much the same in any language.
Here's a quick example:

PRO My_routine, My_mode_parameter

CASE (My_mode_parameter) OF
0: BEGIN ; Perform all 3 actions
My_routine, 1
My_routine, 2
My_routine, 3
END
1: BEGIN
<action 1>
END
2: BEGIN
<action 2>
END
3: BEGIN
<action 3>
END
ELSE:
ENDCASE

END ; PRO


Hope this helps.

-Bill

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Recursive function/procedure
Next Topic: Re: Mac SEND_EVENT

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

Current Time: Sat Oct 11 11:21:58 PDT 2025

Total time taken to generate the page: 0.48044 seconds