Re: Recursion & WebDNA

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22810
interpreted = N
texte = > I was looking for a way to recursion. It occurred to me that I could >create an include file [include filename.inc] with a database search that >includes itself inside the foundItems loop. Is this a good idea? I >don't expect more than 10 levels of recursion, but am I planning to cause >myself way too much grief?Recursion works the way you describe. It is true that deeper levels of recursion use up a certain kind of memory called stack space, but WebCatalog will report when it runs out in case you recurse too deep. We have rewritten WebCatalog (3.x and up) to be much more efficient about stack space.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
> I was looking for a way to recursion. It occurred to me that I could >create an include file [include filename.inc] with a database search that >includes itself inside the foundItems loop. Is this a good idea? I >don't expect more than 10 levels of recursion, but am I planning to cause >myself way too much grief?Recursion works the way you describe. It is true that deeper levels of recursion use up a certain kind of memory called stack space, but WebCatalog will report when it runs out in case you recurse too deep. We have rewritten WebCatalog (3.x and up) to be much more efficient about stack space.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Extended [ConvertChars] (1997) Hiding Brands (2004) Authorizenet answers and more questions (2002) Date stamp and purging (1998) search eqIDdatarq (2004) Custom formulas.db (1998) WebCat and WebTV (1997) WebCatalog2 Feature Feedback (1996) Navigator Parsing (1997) IOD | WAS:[Show items based on login Password] (2003) Using Currencies other than Dollars (1997) WebCatb15 Mac CGI -- [purchase] (1997) shipcost vs shiptotal (1998) Generating Report Totals (1997) Locking up with WebCatalog... (1997) Mondo amounts of Mail [long] (1999) bug in Webcat OSX (1999) problems with 2 tags (1997) Add message to Order (1997) Pull Down Menu for Catagories (2000)