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:

    
  1. RE: Recursion & WebDNA (Olin Lagon 1999)
  2. Re: Recursion & WebDNA (PCS Technical Support 1999)
  3. Recursion & WebDNA (Phil Marshall 1999)
  4. Recursion & WebDNA (Phil Marshall 1999)
> 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:

WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) Displaying photo attached to first record (1997) Numbers and Numbers and Me (1999) PSC recommends what date format yr 2000??? (1997) Cart questions (1997) Nav. 4 probs with cart - Serious problem (1997) Speaking of... (1999) No comment (1997) Re1000001: Setting up shop (1997) WebCat 3.04-3.07 plug-in dying on server.... (2000) searching a range mea culpa (2000) Setting Cart value (2000) Make sure I understand this??? (1997) Email Newsletters (2003) WebCat2b15MacPlugin - showing [math] (1997) another database converted to WebDNA (1999) [founditems] (1998) Hairy Shipping Monster (2006) Running 2 two WebCatalog.acgi's (1996) Bug Report, maybe (1997)