Re: math with a [numfound]
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62297
interpreted = N
texte = Sorry, I forgot to reset the "howmany" value inside the search. Try this instead:[text]howmany=none[/text][search db=^eb/ blogs_yes_no.db&eqOriginalBlogIDdatarq=[BlogBy]&eqStatusdatarq=Yes][text]howmany=[numfound][/text][showif [numfound]!0][replace db=^eb/ bloggers.db&eqbloggeriddatarq=[BlogBy]]numposts=[math][howmany]+1[/ math]&last-blog=[BlogID][/replace]success![/showif][showif [numfound]=0]sorry, the search found zero matching records.[/showif][/search][showif [howmany]=none]sorry, the search failed.[/showif]Sincerely,Kenneth Gromewww.kengrome.comOn Jun 21, 2005, at 10:46, Kenneth Grome wrote:> If your search fails the value inside the math context will be 1, > that's probably why it's always being set to 1. Try this instead:>> [text]howmany=none[/text]>> [search > db=^eb/ > blogs_yes_no.db&eqOriginalBlogIDdatarq=[BlogBy]&eqStatusdatarq=Yes]>> [showif [numfound]!0]> [replace > db=^eb/ > bloggers.db&eqbloggeriddatarq=[BlogBy]]numposts=[math][howmany]+1[/ > math]&last-blog=[BlogID][/replace]> success!> [/showif]>> [showif [numfound]=0]> sorry, the search found zero matching records.> [/showif]>> [/search]>> [showif [howmany]=none]> sorry, the search failed.> [/showif]-------------------------------------------------------------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 Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Sorry, I forgot to reset the "howmany" value inside the search. Try this instead:[text]howmany=none[/text][search db=^eb/ blogs_yes_no.db&eqOriginalBlogIDdatarq=[BlogBy]&eqStatusdatarq=Yes][text]howmany=[numfound][/text][showif [numfound]!0][replace db=^eb/ bloggers.db&eqbloggeriddatarq=[BlogBy]]numposts=[math][howmany]+1[/ math]&last-blog=[BlogID][/replace]success![/showif][showif [numfound]=0]sorry, the search found zero matching records.[/showif][/search][showif [howmany]=none]sorry, the search failed.[/showif]Sincerely,Kenneth Gromewww.kengrome.comOn Jun 21, 2005, at 10:46, Kenneth Grome wrote:> If your search fails the value inside the math context will be 1, > that's probably why it's always being set to 1. Try this instead:>> [text]howmany=none[/text]>> [search > db=^eb/ > blogs_yes_no.db&eqOriginalBlogIDdatarq=[BlogBy]&eqStatusdatarq=Yes]>> [showif [numfound]!0]> [replace > db=^eb/ > bloggers.db&eqbloggeriddatarq=[BlogBy]]numposts=[math][howmany]+1[/ > math]&last-blog=[BlogID][/replace]> success!> [/showif]>> [showif [numfound]=0]> sorry, the search found zero matching records.> [/showif]>> [/search]>> [showif [howmany]=none]> sorry, the search failed.> [/showif]-------------------------------------------------------------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 Web Archive of this list is at: http://webdna.smithmicro.com/
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:
Repost: WebMerchant crashing and other WebMerchant problem (2000)
WebCat2 Append problem (B14Macacgi) (1997)
NT considerations (1997)
encrypt (2000)
Displaying Location (1997)
Multiple prices (1997)
Browser Info.txt (1997)
web merchant (2000)
(2000)
problems with 2 tags shakur (1997)
Navigator 4.01 (1997)
RE: incrementing a counter remotely? (1999)
Spiders (1998)
Chatroom (2000)
docs for WebCatalog2 (1997)
[WebDNA] Append speed limits (2008)
faxing orders (2000)
service stop and restart (1997)
FORMS: Returning a specific page (1997)
Separate SSL Server (1997)