Re: lazy programming

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33806
interpreted = N
texte = >I wanna make a replace context, where if on field exists it overwrites >another. And I don't wanna go in to the first field and 'hide' it if the >second exists. > >Shouldn't a string like this work? >[replace >blah=blah]category=Clothing&subcategory=&category=ddddd&subcategory=ssssss[/ >replace] > >in the example above I'd like ddddd & ssssss to be the end result. Anybody >know why that won't work? You have to use the parameters in the replace tag to identify and retrieve only those records you need to replace, which means the category=Clothing&subcategory= belongs in the replace tag along with the blah=blah parameters, not inside the replace context. And of course this snippet of code has to be changed so it appears in the proper syntax, which means it has to look more like this:eqcategorydatarq=Clothing&eqsubcategorydatarq=[blank] ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: lazy programming (Kenneth Grome 2000)
  2. Re: lazy programming (Aaron Lynch 2000)
  3. Re: lazy programming (Kenneth Grome 2000)
  4. lazy programming (Aaron Lynch 2000)
>I wanna make a replace context, where if on field exists it overwrites >another. And I don't wanna go in to the first field and 'hide' it if the >second exists. > >Shouldn't a string like this work? >[replace >blah=blah]category=Clothing&subcategory=&category=ddddd&subcategory=ssssss[/ >replace] > >in the example above I'd like ddddd & ssssss to be the end result. Anybody >know why that won't work? You have to use the parameters in the replace tag to identify and retrieve only those records you need to replace, which means the category=Clothing&subcategory= belongs in the replace tag along with the blah=blah parameters, not inside the replace context. And of course this snippet of code has to be changed so it appears in the proper syntax, which means it has to look more like this:eqcategorydatarq=Clothing&eqsubcategorydatarq=[blank] ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Kenneth Grome

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:

Forms Search Questions (1997) Upload and append to a db (2002) [WebDNA] List Files question (2009) Searching for foreign chars (2004) Stopping bad HTML propagation ? (1997) Re(2): SSL, WebSTAR, WebCatalog (1998) CloseDatabase (1997) unable to launch acgi in WebCat (1997) Location of Browser Info.txt file (1997) TCPConnect / Current Temperature (2004) Re:no [search] with NT (1997) Bad Suffix (1999) Entry pages (was: WebCatalog MAJOR drawback) (1998) Quit revisited (1997) customizing the color of user's pages (1997) [WebDNA] CICADA (2009) Javascript & Search Results (1998) Multiple SSL Keys (1998) Webmessage Hyperboard (1998) Separate SSL Server (1997)