Re: [REPLACE] inside [FOUNDITEMS]
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 19204
interpreted = N
texte = >>>I don't believe that [replace] will change the [index] values (the>>>positions of the rows in the db), just the values in the database.>>>>I believe you are correct.This is not correct. Replace *can* change the index values, I've proven it in my testing ...>For my personal feeling [Replace] seems to be save when you have a>unique ID and use just this value as main parameter for [Replace].Yes, that's what I said earlier, but this only works if you do *not* use the replace context to change the unique ID -- and you must also be careful that any other fields you are changing do *not* appear in the search parameters. If either one of these situations occurs, it is possible for WebCat to change the wrong records, because the index values will probably change ...>Every programmer develops his personal style over time. For me, I never>ever give my program the chance to replace more than one record or delete>records from the same selection where I'm in at the moment.Neither [delete] nor [replace] will do what you're trying to avoid -- unless you use them INSIDE a founditems context -- so you're safe if you ONLY use replace and delete on their own, and never inside a founditems loop.Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
>>>I don't believe that
[replace] will change the [index] values (the>>>positions of the rows in the db), just the values in the database.>>>>I believe you are correct.This is not correct. Replace *can* change the index values, I've proven it in my testing ...>For my personal feeling
[replace] seems to be save when you have a>unique ID and use just this value as main parameter for
[replace].Yes, that's what I said earlier, but this only works if you do *not* use the replace context to change the unique ID -- and you must also be careful that any other fields you are changing do *not* appear in the search parameters. If either one of these situations occurs, it is possible for WebCat to change the wrong records, because the index values will probably change ...>Every programmer develops his personal style over time. For me, I never>ever give my program the chance to replace more than one record or delete>records from the same selection where I'm in at the moment.Neither
[delete] nor
[replace] will do what you're trying to avoid -- unless you use them INSIDE a founditems context -- so you're safe if you ONLY use replace and delete on their own, and never inside a founditems loop.Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
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:
Email (1998)
WebCat2 Append problem (B14Macacgi) (1997)
Variable security (2000)
Misunderstanding?? (1997)
Sorting Orders (1997)
Country & Ship-to address & other fields ? (1997)
Time for a hard questions. (1997)
RE:math context ignores date prefs? (1998)
Two submit buttons ? (1997)
WebCatalog NT beta 18 problem (1997)
WebCatalog Technical Reference (1997)
Date search - yes or no (1997)
RE: PIXO support (1997)
bug in [SendMail] (1997)
Hiding the URL(was Cart ID Duplication) (2001)
OBDC Support (1997)
too many nested ... problem (1997)
Browser Problem?!? Still getting Error message usingPOST! (1997)
WebCat2b15MacPlugin - [protect] (1997)
Forwarding Orders Via Email (1998)