Re: Other tags inside the founditems context?
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17015
interpreted = N
texte = >Is there ANY WAY that an append context inside the founditems loop will>screw up the internal index in the same manner that using delete inside>the founditems context does?No, that should be fine, since none of the found items will be included inthe newly-added ones. There is no overlap.>What about a replace context inside a founditems loop?Replace *may* affect it, because a replace has the potential to change thefield values in the list of found records. The code looks like replacewould *probably* work (because everything is based on record index), but ithasn't been tested so we can't guarantee it.>What about other tags or contexts inside the founditems context?Only tags that affect database records or databases can be a problem.[CloseDatabase], for instance, would be a bad idea inside a [FoundItems]loop. [FlushDatabases], [Delete], [Replace], would also be bad.Technical Support | ==== eCommerce and Beyond ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>Is there ANY WAY that an append context inside the founditems loop will>screw up the internal index in the same manner that using delete inside>the founditems context does?No, that should be fine, since none of the found items will be included inthe newly-added ones. There is no overlap.>What about a replace context inside a founditems loop?Replace *may* affect it, because a replace has the potential to change thefield values in the list of found records. The code looks like replacewould *probably* work (because everything is based on record index), but ithasn't been tested so we can't guarantee it.>What about other tags or contexts inside the founditems context?Only tags that affect database records or databases can be a problem.
[closedatabase], for instance, would be a bad idea inside a
[founditems]loop.
[flushdatabases],
[delete],
[replace], would also be bad.Technical Support | ==== eCommerce and Beyond ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/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:
Variables for chat (1997)
Newbie problem blah blah blah (1997)
[cart] tag (2000)
Escape the Root! (2002)
TCPSend/Replace DB Records (2002)
[format 40s]text[/format] doesn't work (1997)
Single Link browsing (1997)
Date Comparison (1998)
form crasehes server (1997)
Two submit buttons ? (1997)
Show only certain items (2002)
Not really WebCat (1997)
Hard Questions ? (1997)
WebCat B13 Mac CGI -- Frames question (1997)
Duplicate Carts (2000)
User Authentication (2003)
RE: too many nested [xxx] (1997)
A Global Variable (1997)
using showpage and showcart commands (1996)
Document Contains No Data msg (1997)