#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Recursion

Are there any limits to the depth level of recursion, or is it
determined by memory

Are there any functions you can call like you can in 'C' to see if
you'll have enough free memory to allocate a whole stash of stuff??
--
Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Recursion

It is limited by the amount of stack space. To the best of my knowledge,
this is fixed and can not be queried as to how much is used and how much
remains available.

--
Regards,
Tom Ogilvy


"Mike NG" wrote in message
...
Are there any limits to the depth level of recursion, or is it
determined by memory

Are there any functions you can call like you can in 'C' to see if
you'll have enough free memory to allocate a whole stash of stuff??
--
Mike



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Recursion

Hi Mike,

AFAIK, no such limit has been published.
I have several functions in which the level of recursion is 100 (Markov
chains for disability insurance) and have not experienced any problems so
far.

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"Mike NG" wrote in message
...
Are there any limits to the depth level of recursion, or is it determined
by memory

Are there any functions you can call like you can in 'C' to see if you'll
have enough free memory to allocate a whole stash of stuff??
--
Mike



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Recursion

"Mike NG" wrote in message
...
Are there any limits to the depth level of recursion, or is it determined
by memory

Are there any functions you can call like you can in 'C' to see if you'll
have enough free memory to allocate a whole stash of stuff??


Hi Mike,

Depth of recursion is limited by Excel's available stack space. There
isn't any way to determine the amount of stack space available. There's a
VBA call you can use to determine the amount of system memory available
(Application.MemoryFree), but this reports available system memory, not
internal stack space available.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Recursion

On Thu, 2 Jun 2005 at 21:24:54, Niek Otten (Niek Otten
) wrote:
Hi Mike,

AFAIK, no such limit has been published.
I have several functions in which the level of recursion is 100 (Markov
chains for disability insurance) and have not experienced any problems so
far.

Great - that should more than cover it then
--
Mike
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Worksheet_Change Recursion ARGHH! DBAL[_2_] Excel Programming 6 July 1st 04 11:55 PM
recursion depth, 'Out of stack space' in Quicksort marcel Excel Programming 0 April 21st 04 09:11 PM
How to search the Windows registry by recursion until a reg key is found Belinda Excel Programming 0 March 2nd 04 06:39 AM
Recursion with user defined functions bigJim Excel Programming 1 December 15th 03 01:00 PM


All times are GMT +1. The time now is 06:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"