Re: This [search] worked before update to 4.5.1

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 48508
interpreted = N
texte = Ken-Yup, that did it.Next question:Where the H is that documented?Or is this a bug?Been tearing my hair out over this one...--Will Starck NovaDerm Skincare Science http://www.novaderm.com wjs@novaderm.comOn Thursday, March 6, 2003, at 09:12 PM, Kenneth Grome wrote:>> This snippet is supposed to calculate the number of new customers in >> a given time frame. It was working before the most recent WebDNA >> update (4.5.1), now it's not. Nothing changed on the page. >> >> >> [math]newcust=0[/math] >> >> [search >> db=orders.db&neordernumdata=[blank]&group1field=orderdate&group2field= >> orderdate&gegroup1datarq=[startdate]&legroup2datarq=[enddate]] >> >> [founditems] >> >> [search db=orders.db&eqnamedatarq=[name]] >> [showif [numfound]=1] >> [math]newcust=[newcust]+1[/math] >> [/showif] >> [/search] >> >> [/founditems] >> >> [/search] >> >> Basically, [newcust] is always equalling 1 now... >> >> I'm stumped. Platform is OSX. > > > > Seems like a bug in the math context in the OSX version. Have you > tried this: > > [math]newcust=newcust+1[/math] > > The brackets around the [newcust] variable are (supposedly) > unnecessary -- but in previous versions the code still worked with the > brackets in there. Maybe there's an undocumented change in this > version, or maybe only on the OSX platform in this version? > > Sincerely, > Kenneth Grome > > --------------------------------------------------- > WebDNA Professional Training and Development Center > Cebu City, Philippines +63 (32) 255-6921 > Wholesale WebDNA programming for only $20 per hour! > --------------------------------------------------- > > ------------------------------------------------------------- > 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/ > >------------------------------------------------------------- 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:

    
  1. Re: This [search] worked before update to 4.5.1 (Kenneth Grome 2003)
  2. Re: This [search] worked before update to 4.5.1 (Brian Fries 2003)
  3. Re: This [search] worked before update to 4.5.1 (WJ Starck 2003)
  4. Re: This [search] worked before update to 4.5.1 (Gary Krockover 2003)
  5. Re: This [search] worked before update to 4.5.1 (Kenneth Grome 2003)
  6. Re: This [search] worked before update to 4.5.1 (WJ Starck 2003)
  7. Re: This [search] worked before update to 4.5.1 (Gary Krockover 2003)
  8. This [search] worked before update to 4.5.1 (WJ Starck 2003)
Ken-Yup, that did it.Next question:Where the H is that documented?Or is this a bug?Been tearing my hair out over this one...--Will Starck NovaDerm Skincare Science http://www.novaderm.com wjs@novaderm.comOn Thursday, March 6, 2003, at 09:12 PM, Kenneth Grome wrote:>> This snippet is supposed to calculate the number of new customers in >> a given time frame. It was working before the most recent WebDNA >> update (4.5.1), now it's not. Nothing changed on the page. >> >> >> [math]newcust=0[/math] >> >> [search >> db=orders.db&neordernumdata=[blank]&group1field=orderdate&group2field= >> orderdate&gegroup1datarq=[startdate]&legroup2datarq=[enddate]] >> >> [founditems] >> >> [search db=orders.db&eqnamedatarq=[name]] >> [showif [numfound]=1] >> [math]newcust=[newcust]+1[/math] >> [/showif] >> [/search] >> >> [/founditems] >> >> [/search] >> >> Basically, [newcust] is always equalling 1 now... >> >> I'm stumped. Platform is OSX. > > > > Seems like a bug in the math context in the OSX version. Have you > tried this: > > [math]newcust=newcust+1[/math] > > The brackets around the [newcust] variable are (supposedly) > unnecessary -- but in previous versions the code still worked with the > brackets in there. Maybe there's an undocumented change in this > version, or maybe only on the OSX platform in this version? > > Sincerely, > Kenneth Grome > > --------------------------------------------------- > WebDNA Professional Training and Development Center > Cebu City, Philippines +63 (32) 255-6921 > Wholesale WebDNA programming for only $20 per hour! > --------------------------------------------------- > > ------------------------------------------------------------- > 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/ > >------------------------------------------------------------- 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/ WJ Starck

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:

[showif],[refferer],[include] in errormessages.db (2002) Sorting Orders (1997) Running _every_ page through WebCat-error.html (1997) [WebDNA] forum, ..two? or only one? (2010) Heads up: WebCatalog 4 drops MacTCP, 68K (2000) HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997) suffix mapping for NT? (1997) WebCat2 Append problem (B14Macacgi) (1997) problems with 2 tags (1997) PSC recommends what date format yr 2000??? (1997) frames & carts (1997) too many nested ... problem (1997) [WebDNA] New list (2008) Calendar using WebCatalog? (1997) webcat- multiple selection in input field (1997) A question on sub-categories (1997) CSV import suggestions (2007) WebCatalog Upgrade Pricing? (1997) WebCat2 beta 11 - new prefs ... (1997) WebCat2: Formulas.db question (1997)