Re: Loop code problem
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 30048
interpreted = N
texte = > Can anyone tell me what is wrong with the following code? This is intended to> update all ten rows of a small database. The fields __CNAME and __PCT have> been set up via a form on the same page.> > [Math show=f]LOOPNUM=0[/Math]> [loop start=1&end=10]> [Math show=f] LOOPNUM=([LOOPNUM]+1) [/Math]> [replace > db=holdings.db&eqCNUM=[LOOPNUM]]CNAME=[__CNAME[LOOPNUM]]&PCT=[__PCT[LOOPNUM]][> /replace]> [/loop]Take the spaces out of your [math] context.If you want to know what is wrong in your repalce, just take the first [ outof the [replace] tag, plus delete the [/replace] tag. Then you'll see if itlooks ok.Very common debugging technique.-------------------------------------------------------------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
Associated Messages, from the most recent to the oldest:
> Can anyone tell me what is wrong with the following code? This is intended to> update all ten rows of a small database. The fields __CNAME and __PCT have> been set up via a form on the same page.> > [Math show=f]LOOPNUM=0[/Math]> [loop start=1&end=10]> [Math show=f] LOOPNUM=([LOOPNUM]+1) [/Math]> [replace > db=holdings.db&eqCNUM=[LOOPNUM]]CNAME=[__CNAME[LOOPNUM]]&PCT=[__PCT[LOOPNUM]][> /replace]> [/loop]Take the spaces out of your [math] context.If you want to know what is wrong in your repalce, just take the first [ outof the [replace] tag, plus delete the [/replace] tag. Then you'll see if itlooks ok.Very common debugging technique.-------------------------------------------------------------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
Nicolas Verhaeghe
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:
Setting up the server (1997)
linetiems in thankyou.tpl (1997)
[OT] Browser's search via javascript? (2003)
Possible Bug in 2.0b15.acgi (1997)
WebCatalog stalls (1998)
[isfile] ? (1997)
Editing Users.db (1997)
SmithMicro FTP problems (2002)
Log entry (1999)
WebCatalog for guestbook ? (1997)
Custom WebCat Prefs ... (1997)
policies, slightly OT (2004)
Upgrading old WebCat Database Files (1997)
Very serious bug with the [protect] tag (2003)
Help! WebCat2 bug (1997)
Problem with Formulas.db (1998)
CommandSecurity? (1997)
LetterRip and WebCat (1998)
Generating Report Totals (1997)
WebCatalog Technical Reference (1997)