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:
credit card authorization question (1997)
RE: WebCat name recognition (was MacFinder -- a new WebDNAw (1998)
carriage returns in data (1997)
BBEdit and WebCatalog 2.0? (1997)
Parameter Problem ATTN: Ken Grome (1998)
Problem (1997)
remotely add + sign (1997)
Bug Report, maybe (1997)
Formatting a .txt file (1998)
Problem with updating to 2.1.1 (1998)
How do you hide [math]stuff[/math] (1997)
Expected behavior? (1998)
Multiple Newcarts (1996)
Upgrade to WebCat2 from Commerce Lite (1997)
Form Variables (2000)
Emailer Set Up (1997)
WebCat2b15MacPlugin - showing [math] (1997)
Initiating NewCart (1997)
gateway application timeouts (1998)
[WebDNA] WebDNA 8.6 announced - New features (2018)