Re: replace using &append=T

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68368
interpreted = N
texte = Can you use: [replace db=hours.2007.db&eqSKUdatarq=[url][my_var][/url]&append=t]&SKU=[url][my_var][/url]...more...[/replace] That will replace anything equal to sku=[my_var] and append if there is not a record matching. Matt -----Original message----- From: sbraun sbraun1@twcny.rr.com Date: Fri, 26 Jan 2007 01:47:03 -0500 To: "WebDNA Talk" WebDNA-Talk@talk.smithmicro.com Subject: replace using &append=T > > Hi All, > > Can someone please help me with getting a replace to work with the > &append=T inside of a loop. > Sometimes my 'bunch of code' will have the [my_var] result in a new > number, and then I wish to append. > Sometimes my 'bunch of code' will have the [my_var] result in a used > number, and then I wish to replace. > > > [loop start=0&end=6&advance=1] > .....bunch of code....... > [search db=hours.2007.db&geSKUdatarq=1][founditems] > [replace db=hours.2007.db&geSKUdatarq=1&append=t]&SKU=[url][my_var][/ > url].....more.......[/replace] > [/founditems] > [/search] > [text]my_var=[math][my_var]+1[/math][/text] > [/loop] > > > > Thanks for any assistance, > sfb > > > > > > ------------------------------------------------------------- > 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://webdna.smithmicro.com/ ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: replace using &append=T ( Donovan Brooke 2007)
  2. Re: replace using &append=T ( Terry Wilson 2007)
  3. Re: replace using &append=T ( Grant Hulbert 2007)
  4. Re: replace using &append=T ( sbraun 2007)
  5. Re: replace using &append=T ( Donovan Brooke 2007)
  6. Re: replace using &append=T ( Donovan Brooke 2007)
  7. Re: replace using &append=T ( matthew.bohne@benetela.com 2007)
  8. replace using &append=T ( sbraun 2007)
Can you use: [replace db=hours.2007.db&eqSKUdatarq=[url][my_var][/url]&append=t]&SKU=[url][my_var][/url]...more...[/replace] That will replace anything equal to sku=[my_var] and append if there is not a record matching. Matt -----Original message----- From: sbraun sbraun1@twcny.rr.com Date: Fri, 26 Jan 2007 01:47:03 -0500 To: "WebDNA Talk" WebDNA-Talk@talk.smithmicro.com Subject: replace using &append=T > > Hi All, > > Can someone please help me with getting a replace to work with the > &append=T inside of a loop. > Sometimes my 'bunch of code' will have the [my_var] result in a new > number, and then I wish to append. > Sometimes my 'bunch of code' will have the [my_var] result in a used > number, and then I wish to replace. > > > [loop start=0&end=6&advance=1] > .....bunch of code....... > [search db=hours.2007.db&geSKUdatarq=1][founditems] > [replace db=hours.2007.db&geSKUdatarq=1&append=t]&SKU=[url][my_var][/ > url].....more.......[/replace] > [/founditems] > [/search] > [text]my_var=[math][my_var]+1[/math][/text] > [/loop] > > > > Thanks for any assistance, > sfb > > > > > > ------------------------------------------------------------- > 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://webdna.smithmicro.com/ ------------------------------------------------------------- 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://webdna.smithmicro.com/ matthew.bohne@benetela.com

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:

creating a ShipCosts database (1997) PIXO Support (1997) delete command not working (2000) creator code (1997) FTP FOLDER PERMISSIONS (2004) Displaying photo attached to first record (1997) Talk List Suggestions (1997) Running 2 two WebCatalog.acgi's (1996) Email problem (1998) Display [price] in banner ad (1998) Multiple prices (1997) [WebDNA] Downloadable docs (2011) [WriteFile] problems (1997) Shared conversion under WebTen (1998) Summing a field full of numbers ... (1997) Web Developer Product Awards (1997) Mac: LModelDirector bug fix (1997) The Depths of Credit Card Payment (2003) Webcatalog acgi conflict? (1999) HTML encoding in URLs (1997)