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 serving error page? (2000) encrypted query string trouble on OSX (2001) Cancel Subscription (1996) FYI: virus alert (1996) (no subject) (1997) date formatting for CC card expiration date check (1998) emailer (1997) Am on the list? (1997) possible, WebCat2.0 and checkboxes-restated (1997) Dreamweaver MX integration (2002) Emailing html (1998) Add a field to the error log? (1997) change the number format (1997) Accepting credit cards (1997) absolute paths for databases? (1997) Logging purchases (1997) [WebDNA] The Single-Vendor Commercial Open Source Business Model for WebDNA (2012) WebCatalog [FoundItems] Problem - AGAIN - (1997) TIP OF THE DAY quick & dirty html text (2004) FORMS: Returning a specific page (1997)