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:

PCS Frames-Default page is solution! (1997) WebDNA tags in WebMerchant email templates ... (1997) Multiple radio buttons (1998) Color (1997) Getting total number of items ordered (1997) How far do [showif]s go? (1997) [ShowCart]-- was ThankYou page problems (1997) The [shownext] limitations (2002) Claris HomePage messes up the code (1997) Close-to Comparison Code (1998) Using Plug-In while running 1.6.1 (1997) showif errors (1998) Running 2 two WebCatalog.acgi's (1996) Faxing orders in place of email (1997) WebDNA Intranet Edition release (2002) Hiring: Web programmer in Seattle area (2000) WebCommerce Security Alert! (1996) creator code (1997) shipCost (1998) Anyone using Verisign's Payflow Link for payment processing? (2000)