Re: math problems
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 28087
interpreted = N
texte = Glenn,What she is doing is using the [lineitems] context (which is a loop) to sum all the values.ie:for each lineitem multiply quantity and crv together, then add it to the next iteration of the loop. pretty cool actually.Sorry Kim, I don't see any reason you should be getting weird data. The loop looks ok to me.You could try a few things though that might help.Break this up a bit. Try setting CRVFigure to 0 before you get here. Then do the [math] then format it.Maybe WebCat is getting confused with all this at once.>on 02/25/00 11:57 AM, Kimberly D Ingram at Kim@cnetech.com wrote:>> > $[format> > >..2f][math]CRVFigure=[lineitems][Quantity]*[CRV]+[/lineitems]0[/math][ >/format> > ] CRV>>I'm a long way from being a WebDNA wizard, but the + operator looks odd to>me. There's nothing following it that can be added to [Quantity]*[CRV].>>Is this some weird and esoteric WC thing that isn't documented in the user>manual? If it is, I sure can't find it in the Context: Math section.>>Glenn>>>------------------------------------------------------------->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:
Glenn,What she is doing is using the [lineitems] context (which is a loop) to sum all the values.ie:for each lineitem multiply quantity and crv together, then add it to the next iteration of the loop. pretty cool actually.Sorry Kim, I don't see any reason you should be getting weird data. The loop looks ok to me.You could try a few things though that might help.Break this up a bit. Try setting CRVFigure to 0 before you get here. Then do the [math] then format it.Maybe WebCat is getting confused with all this at once.>on 02/25/00 11:57 AM, Kimberly D Ingram at Kim@cnetech.com wrote:>> > $[format> > >..2f][math]CRVFigure=[lineitems][Quantity]*[CRV]+[/lineitems]0[/math][ >/format> > ] CRV>>I'm a long way from being a WebDNA wizard, but the + operator looks odd to>me. There's nothing following it that can be added to [Quantity]*[CRV].>>Is this some weird and esoteric WC thing that isn't documented in the user>manual? If it is, I sure can't find it in the Context: Math section.>>Glenn>>>------------------------------------------------------------->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
Charles Kline
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:
Switching from merge to tab delimited..(v 2.x) (2000)
Credit Card processing (1998)
Shopping Cart Page (1997)
Setting user and password (1999)
WebCat2b13MacPlugIn - syntax to convert date (1997)
Formula Question (1998)
Order not created error (1997)
Protect vs Authenicate (1997)
Document Contains No Data! (1997)
"&" character in Flash animation (2004)
[CART] inside a [LOOP] (1997)
WebCat2b13MacPlugIn - more [date] problems (1997)
WebCat, The Trend, & Consolidating... (1997)
orderfile and setlineitems (1998)
Preventing Merchant Settling ? (1997)
Price problem (1997)
[WebDNA] WebDNA licenses discount from 12/23 to 12/31 (2012)
Postprocessing CCs (2000)
[SubTotal] again (1998)
[search] & [encrypt]/[decrypt] (2001)