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:
RE: Error: template (1997)
Formating Tables w/[founditems] (1998)
Jimmy Houssen (1998)
There's a bug in the math context ... (1997)
Multiple fields on 1 input (1997)
Help name our technology! (1997)
SAVECART (1997)
[WebDNA] can webdna's [grep] find and replace ONLY the literal "+" char? (2012)
Serving images from databases (1998)
WC2f3 (1997)
Transfer of data from Invoice to thank you templates (1998)
DON'T use old cart file! (1997)
OS Accessing FTP from Browser (2000)
More EudoraPro Email Options (1998)
is your webDNA site 'froogle' ready ??? (2003)
Some Questions (1997)
WebCat2b15MacPlugin - showing [math] (1997)
Hiding HTML and page breaks (1997)
Searching for ALL / empty form field (1997)
Multiple Pulldowns (1997)