Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursion with foxpro
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01086981
Message ID:
01087364
Views:
30
>See Re: Do levels Thread #1047971
Thanks for the help, that solved it.

>
>>
>>I was looking for an efficient way of doing this. Because if I'm doing a very simple recursion in foxpro I get an error message : insufficient stack space.
>>
>>Just doing the following, which represents an annuity:
>>
>>? aa(75)
>>
>>FUNCTION aa(n)
>>
>>IF n = 0 THEN
>>	RETURN 0
>>ENDIF
>>
>>RETURN 1 + 1/(1+0.04)*aa(n-1)
>>ENDFUNC
>>
>>Maybe recursion is not the way to do these things in foxpro? In c# I can do it w/o any problem.
>>
>>
Zakaria al Azhar
My blog on Actuaris.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform