Re: Loop code problem

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 30038
interpreted = N
texte = [loop start=1&end=10] [replace db=holdings.db&eqCNUM=[index]] CNAME=[__CNAME][index] &PCT=[__PCT][index] [/replace] [/loop]The same thing can be acheived with the above code, The problem with your code was, CNAME=[__CNAME[LOOPNUM]] this should have been CNAME=[_CNAME][LOOPNUM]regards anup----- Original Message ----- From: Ralph Dratman To: WebCatalog Talk Sent: Wednesday, April 05, 2000 10:08 AM Subject: Loop code problem > 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] > > Thank you. > > Ralph Dratman > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- 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:

    
  1. Re: Loop code problem (Anup setty 2000)
  2. Re: Loop code problem (WebDNA Support 2000)
  3. Loop code problem (Ralph Dratman 2000)
  4. Re: Loop code problem (Kenneth Grome 2000)
  5. Re: Loop code problem (Kenneth Grome 2000)
  6. Re: Loop code problem (Anup setty 2000)
  7. Re: Loop code problem (Jason Sofonia 2000)
  8. Re: Loop code problem (Anup setty 2000)
  9. Re: Loop code problem (Nicolas Verhaeghe 2000)
  10. Re: Loop code problem (Nicolas Verhaeghe 2000)
  11. Re: Loop code problem (Anup setty 2000)
  12. Loop code problem (Ralph Dratman 2000)
[loop start=1&end=10] [replace db=holdings.db&eqCNUM=[index]] CNAME=[__CNAME][index] &PCT=[__PCT][index] [/replace] [/loop]The same thing can be acheived with the above code, The problem with your code was, CNAME=[__CNAME[LOOPNUM]] this should have been CNAME=[_CNAME][LOOPNUM]regards anup----- Original Message ----- From: Ralph Dratman To: WebCatalog Talk Sent: Wednesday, April 05, 2000 10:08 AM Subject: Loop code problem > 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] > > Thank you. > > Ralph Dratman > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- 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 Anup setty

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:

Trouble with formula.db (1997) [WebDNA] Dealing with age and birth day (2017) Webten&Webcat (1998) [WebDNA] Error 500 with SUMM=T (2017) [WebDNA] [input] v. [sendmail] question (2009) Database Updates (1997) RE: Missing contexts on NT (1997) StoreBuilder Q's (2003) SendTo more emails (1998) possible, WebCat2.0 and checkboxes-restated (1997) summ=T (2003) price formula (1999) requiring form fields? (2000) Dubble Sku's in a Database (1999) WebCat2.0 [format thousands .0f] no go (1997) math on date? (1997) Pithy questions on webcommerce & siteedit (1997) Custom WebCat Prefs ... (1997) Unknown error: OrderNotCreated (1997) Searching/sorting dates (1997)