[REPLACE] inside [FOUNDITEMS]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19176
interpreted = N
texte = 2.1.6 through 3.0b4, MAC PII discovered something today and I'm not sure if it's a bug or a feature:Let's say I have a record with SKU=666 and INV=30,[SEARCH db=my.db&eqSKUdatarq=666] [FOUNDITEMS] [INV]

[REPLACE db=my.db&eqSKUdatarq=666]INV=100[/REPLACE] [INV] [/FOUNDITEMS] [/SEARCH]returns: 30 100I expected: 30 30I never expected that the [REPLACE] would change my [FOUNDITEMS] results. I thought it would replace the value in the database but leave the returned values of my [SEARCH] untouched. This could (and has) caused quite a few logic errors in some scripts.Has this been going on for long?MichaelMichael Winston *By e-mail!: michaelw@dhorse.com Internet Coordinator *By web!: http://www.dhorse.com/ Dark Horse Comics, Inc. *By fax!: 503/654/9440 Associated Messages, from the most recent to the oldest:

    
  1. Re: [REPLACE] inside [FOUNDITEMS] (Kenneth Grome 1998)
  2. Re: [REPLACE] inside [FOUNDITEMS] (Peter Ostry 1998)
  3. Re: [REPLACE] inside [FOUNDITEMS] (Michael Winston 1998)
  4. Re: [REPLACE] inside [FOUNDITEMS] (Kenneth Grome 1998)
  5. Re: [REPLACE] inside [FOUNDITEMS] (Bob Minor 1998)
  6. Re: [REPLACE] inside [FOUNDITEMS] (PCS Technical Support 1998)
  7. Re: [REPLACE] inside [FOUNDITEMS] (Michael Winston 1998)
  8. Re: [REPLACE] inside [FOUNDITEMS] (PCS Technical Support 1998)
  9. Re: [REPLACE] inside [FOUNDITEMS] (Dave MacLeay 1998)
  10. Re: [REPLACE] inside [FOUNDITEMS] (PCS Technical Support 1998)
  11. Re: [REPLACE] inside [FOUNDITEMS] (Kenneth Grome 1998)
  12. RE: [REPLACE] inside [FOUNDITEMS] (Olin 1998)
  13. [REPLACE] inside [FOUNDITEMS] (Michael Winston 1998)
  14. Re: [REPLACE] inside [FOUNDITEMS] (Dave MacLeay 1998)
  15. RE: [REPLACE] inside [FOUNDITEMS] (Olin 1998)
2.1.6 through 3.0b4, MAC PII discovered something today and I'm not sure if it's a bug or a feature:Let's say I have a record with SKU=666 and INV=30,[SEARCH db=my.db&eqSKUdatarq=666] [founditems] [INV]

[REPLACE db=my.db&eqSKUdatarq=666]INV=100[/REPLACE] [INV] [/FOUNDITEMS] [/SEARCH]returns: 30 100I expected: 30 30I never expected that the [replace] would change my [founditems] results. I thought it would replace the value in the database but leave the returned values of my [search] untouched. This could (and has) caused quite a few logic errors in some scripts.Has this been going on for long?MichaelMichael Winston *By e-mail!: michaelw@dhorse.com Internet Coordinator *By web!: http://www.dhorse.com/ Dark Horse Comics, Inc. *By fax!: 503/654/9440 Michael Winston

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:

Referrer or maybe another way..... (2005) Freeze (2003) Incorrect Permission Settings (2003) Emailer port change (1997) WebCat2 - storing unformatted date data? (1997) Giving out error pages (1997) LOOP and IF statements (1997) Not really WebCat (1997) Problems reading files created by WC (1997) Is there a max number of fields? (1998) WebCat2 - Getting to the browser's username/password data (1997) WebMerchant 3.0? (1998) Getting total number of items ordered (1997) WebCatalog/Mac 2.1b2 New Features (1997) Error: the 'showcart' command requires that you specify a db (1997) WebCat2b15MacPlugin - showing [math] (1997) Graphical display of sales volume (2003) Design Help Needed (1998) Emailer file formats (1998) Feature: TCPconnect via SSL (1999)