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

Home » Public Forums » archive » calling a function in herself
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: calling a function in herself [message #20975 is a reply to message #20893] Mon, 31 July 2000 00:00 Go to previous messageGo to previous message
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
Will FORWARD_FUNCTION do the trick? Or, try placing the new "COMPILE_OPT
IDL2" instructuin at the beginning your code. It will enforce strict
array subscripting using only [ ... ], and anything with ( ... ) will be
considered a function.
Cheers,
Pavel

"J�rg Schliwa" wrote:
>
> Hy to all!
>
> I have a file with the main-procedure and some functions in it. When I'm in
> the function e.g h_wahl I want to call the function h_wahl again. Is that
> possible? When I compile the file, the expression h_wahl is not known in
> h_wahl.
>
> e.g.
> ;procedure rasterung.pro
>
> Function H_Wahl(a,b,Steig=steig,Abstand=abstand)
> If Keyword_Set(abstand) Then .....
>
> If Keyword_Set(steig) Then Begin
> ...
> return, H_Wahl(c,d,/abstand)
> Endif
> End
>
> pro rasterung...
>
> Any suggestions?
>
> Thanks in advance,
> J�rg Schliwa
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Structure Pass By Reference?
Next Topic: Problems getting CURVEFIT to work

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

Current Time: Sat Oct 11 07:48:16 PDT 2025

Total time taken to generate the page: 1.68319 seconds