Re: [math] are you there?

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24340
interpreted = N
texte = I could be wrong on this, but I believe it's illegal to use a format context inside of a math context. Try to take that out of there and see if it works.If you *need* to have the truncated value before you deal with the rest of the math statement, as opposed to truncating on the end, try this debug method:[text show=f]TempVal=[format .2f][quantity]*[price][/format][/text] [math]ModifiedSubTotal=ModifiedSubTotal+[TempVal][/math] Another note as well. I remember reading a long time ago that math and text variables were limited to 12 characters in length, and that it ignored anything after that. So, if that is the case, remember to steer away from other variable names that begin with ModifiedSubT-HowardOn Sat, 13 Nov 1999, John Butler wrote:> Weekend cats :-), > > My simple [math] is turning up nothing and I don't know why... > > I'm on: > web* 4.1 b/17 > webcat plugin 3.05b10 > > I have an embedded search that finds records from the orders-lineitmes.db and calculates > the subtotal for that order on the fly with this: > > > [Search db=Orders-Lineitems.db&eqOrderIDdatarq=[OrderID]&LineIndexsort=1] > [FoundItems] > > > [Replace > db=TempModSubTotal.db&eqOrderIDdata=[OrderID]&Append=T]OrderID=[OrderID]&ModifiedSubTotal=[math]ModifiedSubTotal[/math][/Replace] > > ModifiedSubTotal=[math]ModifiedSubTotal[/math] or > [ModifiedSubTotal] > [/FoundItems][/Search] > > (That last table row is just so I can see the status of [ModifiedSubTotal] each loop thru > the founditems) > The value for ModifiedSubTotal never makes it into the db, and the returned html for > that test table row always comes out- > > ModifiedSubTotal= or [ModifiedSubTotal] > > And for sure the search does find something, so that is not the issue > Seems like I am not understanding something about the way [math] works...? > ANyone know what is up? > > -John > > > ------------------------------------------------------------- > Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. > To end your Mail problems go 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 > ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go 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: [math] are you there? (Kenneth Grome 1999)
  2. Re: [math] are you there? (PCS Technical Support 1999)
  3. Re: [math] are you there? (John Butler 1999)
  4. Re: [math] are you there? (Kenneth Grome 1999)
  5. Re: [math] are you there? (PCS Technical Support 1999)
  6. Re: [math] are you there? (Howard Wolosky 1999)
  7. Re: [math] are you there? (Kenneth Grome 1999)
  8. Re: [math] are you there? (John Hill 1999)
  9. Re: [math] are you there? (Howard Wolosky 1999)
  10. [math] are you there? (John Butler 1999)
I could be wrong on this, but I believe it's illegal to use a format context inside of a math context. Try to take that out of there and see if it works.If you *need* to have the truncated value before you deal with the rest of the math statement, as opposed to truncating on the end, try this debug method:[text show=f]TempVal=[format .2f][quantity]*[price][/format][/text] [math]ModifiedSubTotal=ModifiedSubTotal+[TempVal][/math] Another note as well. I remember reading a long time ago that math and text variables were limited to 12 characters in length, and that it ignored anything after that. So, if that is the case, remember to steer away from other variable names that begin with ModifiedSubT-HowardOn Sat, 13 Nov 1999, John Butler wrote:> Weekend cats :-), > > My simple [math] is turning up nothing and I don't know why... > > I'm on: > web* 4.1 b/17 > webcat plugin 3.05b10 > > I have an embedded search that finds records from the orders-lineitmes.db and calculates > the subtotal for that order on the fly with this: > > > [Search db=Orders-Lineitems.db&eqOrderIDdatarq=[OrderID]&LineIndexsort=1] > [founditems] > > > [Replace > db=TempModSubTotal.db&eqOrderIDdata=[OrderID]&Append=T]OrderID=[OrderID]&ModifiedSubTotal=[math]ModifiedSubTotal[/math][/Replace] > > ModifiedSubTotal=[math]ModifiedSubTotal[/math] or > [ModifiedSubTotal] > [/FoundItems][/Search] > > (That last table row is just so I can see the status of [ModifiedSubTotal] each loop thru > the founditems) > The value for ModifiedSubTotal never makes it into the db, and the returned html for > that test table row always comes out- > > ModifiedSubTotal= or [ModifiedSubTotal] > > And for sure the search does find something, so that is not the issue > Seems like I am not understanding something about the way [math] works...? > ANyone know what is up? > > -John > > > ------------------------------------------------------------- > Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. > To end your Mail problems go 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 > ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go 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 Howard Wolosky

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:

sort problems....bug or brain fart? (1997) [WebDNA] [PROTECT] - Log Out (2011) RE: [WebDNA] How to code a 301 redirect (2008) WebCat b15 Mac plug-in (1997) PCS Customer submissions ? (1997) Beta 18 (1997) NewCart+Search with one click ? (1997) Search Engine bots (2002) Price Not Appearing (2000) WCS Newbie question (1997) Two submit buttons ? (1997) Getting total number of items ordered (1997) [WebDNA] JSON Parser (2014) Just Testing (1997) passing info to thankyou.tpl (1998) WebTen and WebCat (1997) Calculating multiple shipping... (1997) japanese characters (1997) BBEdit/HTMLcomments/WebCat/[/FONT] (1999) Grepping URL-Encoded Text (2004)