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

Re: calling a function in herself



OF course it has to be in the example:
Function H_Wahl,a,b,Steig=steig,Abstand=abstand

so that was not the error!


Jörg Schliwa <joerg.schliwa@ewetel.net> schrieb in im Newsbeitrag:
8m4c9b$3h9$1@ac1.ewetel.de...
> 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
>
>