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 beenCNAME=[_CNAME][LOOPNUM]regardsanup----- Original Message -----From: Ralph Dratman
To: WebCatalog Talk Sent: Wednesday, April 05, 2000 10:08 AMSubject: Loop code problem> Can anyone tell me what is wrong with the following code? This is intendedto update all ten rows of a small database. The fields __CNAME and __PCThave 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]> [replacedb=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:
[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 beenCNAME=[_CNAME][LOOPNUM]regardsanup----- Original Message -----From: Ralph Dratman To: WebCatalog Talk Sent: Wednesday, April 05, 2000 10:08 AMSubject: Loop code problem> Can anyone tell me what is wrong with the following code? This is intendedto update all ten rows of a small database. The fields __CNAME and __PCThave 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]> [replacedb=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:
[WebDNA] .htm files (2008)
RE: [WebDNA] HTML [sendmail] revisited (2009)
NewCart+Search with one click ? (1997)
[WebDNA] "The requested URL" error not allowing access to site... (2014)
[HIDEIF] inside [FOUNDITEM] (1997)
RequiredFields and MacOS X Server? (2000)
shipcost - cleaner with a table (1998)
This list needs a digest: rant, rave... (1997)
ListVariables Problem (2003)
WebMechant (2000)
Error Lob.db records error message not name (1997)
WebCatalog 2.0 b 15 mac (1997)
WebDelivery downloads alias, not original ? (1997)
WC1.6 to WC2 date formatting (1997)
[WebDNA] Yosemite (2014)
Is there a max number of fields? (1998)
shipcost (1997)
Logging purchases (1997)
Emailer help....! (1997)
Help! WebCat2 bug (1997)