[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

calling a function in herself



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