Re: Replace Statement
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13305
interpreted = N
texte = Hello.I tried Kenneth Grome's great suggestion, and it makes more sens thanwhat i was trying to do. But I can't seem to get the replace to replace*any* field what so ever. Is there some formating thing with the dbthat has to happen? If anyone has any ideas why I can't replace anyrecords in this db, that would be much appreciated!Thanks!Kenneth Grome wrote:> > >Can anyone figure out why this is not replacing the record properly?> >The 3 variables at the bottom are to show that they are getting the> >right information (which they are), but it's not updating my db, its in> >the right folder. I can't get it to replace any of the fields period.> >> >Any suggestions would be grateful. THANK YOU!> > >[search db=classifieds.db&eqUniqueIdData=[form.uniqueid]]> > [founditems]> > > > [/founditems]> >[/search]> >[replace> >db=classifieds.db&eqUniqueIdData=[form.UniqueId]]Yes=[math]newyes[/math][/repla> >ce]> > Hi Damien,> > Here's a simplified version of your WebDNA that should work properly> and be faster, too:> > [replace> db=classifieds.db&equniqueiddata=[form.uniqueid]]Yes=[math][lookup> db=classifieds.db&value=[form.uniqueid]&lookinfield=uniqueid&returnfield=Yes¬> found=]+1[/math][/replace]> > Sincerely, Ken Grome> WebDNA Solutions> http://www.hui.net/dna/webdna.html-- _ __( )_ While Eeyore frets ... ( (o____ and Piglet hesitates ... | | and Rabbit calculates ... | (__/ and Owl pontificates \ / ___ / \ \___/ / ^ / \ ...Pooh just is. | | |__|_HUNNY | | \______)____/ \ / \ /_ Damien Joldersma | ( __) p00h@wcug.wwu.edu (____) http://www.wcug.wwu.edu/~p00h
Associated Messages, from the most recent to the oldest:
Hello.I tried Kenneth Grome's great suggestion, and it makes more sens thanwhat i was trying to do. But I can't seem to get the replace to replace*any* field what so ever. Is there some formating thing with the dbthat has to happen? If anyone has any ideas why I can't replace anyrecords in this db, that would be much appreciated!Thanks!Kenneth Grome wrote:> > >Can anyone figure out why this is not replacing the record properly?> >The 3 variables at the bottom are to show that they are getting the> >right information (which they are), but it's not updating my db, its in> >the right folder. I can't get it to replace any of the fields period.> >> >Any suggestions would be grateful. THANK YOU!> > >[search db=classifieds.db&eqUniqueIdData=[form.uniqueid]]> >
[founditems]> > [math]NewYes=[Yes]+1[/math]>> > [/founditems]> >[/search]> >[replace> >db=classifieds.db&eqUniqueIdData=[form.UniqueId]]Yes=
[math]newyes[/math][/repla> >ce]> > Hi Damien,> > Here's a simplified version of your WebDNA that should work properly> and be faster, too:> > [replace> db=classifieds.db&equniqueiddata=[form.uniqueid]]Yes=
[math][lookup> db=classifieds.db&value=[form.uniqueid]&lookinfield=uniqueid&returnfield=Yes¬> found=]+1[/math][/replace]> > Sincerely, Ken Grome> WebDNA Solutions> http://www.hui.net/dna/webdna.html-- _ __( )_ While Eeyore frets ... ( (o____ and Piglet hesitates ... | | and Rabbit calculates ... | (__/ and Owl pontificates \ / ___ / \ \___/ / ^ / \ ...Pooh just is. | | |__|_HUNNY | | \______)____/ \ / \ /_ Damien Joldersma | ( __) p00h@wcug.wwu.edu (____) http://www.wcug.wwu.edu/~p00h
Damien Joldersma
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:
Error Msg (1998)
possible bug in unix version? (2000)
grep question - how to strip spaces from the beginning of a (2002)
'does not contain' operator needed ... (1997)
CASTEGORIES IN DIFFERENT FRAMES (1997)
orders (1998)
Frames and WebCat (1997)
[WebDNA] Hard-coded db write delay when running certain code? (2011)
Re:What file? (1997)
[WebDNA] (2014)
Attention SM: Trigger Bug? (2000)
InternetWeek E-Commerce article (1998)
cart info (1998)
problem (1998)
how many users (2000)
Date search - yes or no (1997)
[WebDNA] WebSite Examples (2008)
SSL and reg web* (1997)
Initiating NewCart (1997)
[append] vs. [appendfile] delta + question? (1997)