Problems with [Math]
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 19927
interpreted = N
texte = Sorry to bother you all, since I know this has been posted before, Itought I had saved the message, but now I can't find it.I am trying to count the number of items of each class that appears inthe Cart. (I save the catagoryID of each cart item in the TextE variable).The routine seems to work: if I change show=F to show=T, I can see thecounters incrementing.My problem is that I don't know how to display the math variables once Iam out of the [lineitems] loop.In other words [Math][NumRevistas][/Math] does nothing.This is my code:[Math show=F]NumRevistas=0[/Math][Math show=F]NumCamisetas=0[/Math][Math show=F]NumPins=0[/Math][Math show=F]NumJuegos=0[/Math][lineitems][ShowIf [TextE]<5][Mathshow=F]NumRevistas=NumRevistas+[quantity][/Math][/ShowIf][ShowIf [TextE]=5][Mathshow=F]NumCamisetas=NumCamisetas+[quantity][/Math][/ShowIf][ShowIf [TextE]=6][Math show=F]NumPins=NumPins+[quantity][/Math][/ShowIf][ShowIf [TextE]=7][Mathshow=F]NumJuegos=NumJuegos+[quantity][/Math][/ShowIf][/lineitems][Math][NumRevistas][/Math] /*Nothing is shown here!!!*/I have also tried:[Math show=T][NumRevistas][/Math][format 10.0f][Math][NumRevistas][/Math][/format][Math][NumRevistas]=[NumRevistas]+0[/Math]Does any of you know what I am doind wrong? How the *^%@!&* do youdisplay a [Math] variable?Thanks in advance for your help,Charles_______________________________________________________________Institut Balear de Comunicacions, S.L.Gremio Tejedores 22, 107009 Palma de Mallorca, Spain_____________________________________________Tel: +34 971.43.12.77Fax: +34 971.43.08.18E-mail: ckefauver@ibacom.esURL: http://www.ibacom.es/_____________________________________________Public PGP signature (Clave publica PGP):http://www.ibacom.es/PGP/kefauver.txt_______________________________________________________________
Associated Messages, from the most recent to the oldest:
Sorry to bother you all, since I know this has been posted before, Itought I had saved the message, but now I can't find it.I am trying to count the number of items of each class that appears inthe Cart. (I save the catagoryID of each cart item in the TextE variable).The routine seems to work: if I change show=F to show=T, I can see thecounters incrementing.My problem is that I don't know how to display the math variables once Iam out of the
[lineitems] loop.In other words
[math][NumRevistas][/Math] does nothing.This is my code:[Math show=F]NumRevistas=0[/Math][Math show=F]NumCamisetas=0[/Math][Math show=F]NumPins=0[/Math][Math show=F]NumJuegos=0[/Math]
[lineitems][ShowIf [TextE]<5][Mathshow=F]NumRevistas=NumRevistas+[quantity][/Math][/ShowIf][ShowIf [TextE]=5][Mathshow=F]NumCamisetas=NumCamisetas+[quantity][/Math][/ShowIf][ShowIf [TextE]=6][Math show=F]NumPins=NumPins+[quantity][/Math][/ShowIf][ShowIf [TextE]=7][Mathshow=F]NumJuegos=NumJuegos+[quantity][/Math][/ShowIf][/lineitems]
[math][NumRevistas][/Math] /*Nothing is shown here!!!*/I have also tried:[Math show=T][NumRevistas][/Math][format 10.0f]
[math][NumRevistas][/Math][/format]
[math][NumRevistas]=[NumRevistas]+0[/Math]Does any of you know what I am doind wrong? How the *^%@!&* do youdisplay a
[math] variable?Thanks in advance for your help,Charles_______________________________________________________________Institut Balear de Comunicacions, S.L.Gremio Tejedores 22, 107009 Palma de Mallorca, Spain_____________________________________________Tel: +34 971.43.12.77Fax: +34 971.43.08.18E-mail: ckefauver@ibacom.esURL: http://www.ibacom.es/_____________________________________________Public PGP signature (Clave publica PGP):http://www.ibacom.es/PGP/kefauver.txt_______________________________________________________________
Charles Kefauver
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:
WebCatalog2 Feature Feedback (1996)
Dumb Question about Docs (1997)
WebMerchant & CC Response (2002)
NT considerations (1997)
Using Applescript to process WebCatalog functions (1998)
setlineiems and UnitShip Cost (2000)
Error: Permision deny. Unable to append to (2002)
writing db to disk (1997)
PCS Frames (1997)
OT: test (1998)
2.1b3 --> way slow (1997)
Frames and WebCat (1997)
[ShowNext] (1997)
make updates in a temporary database (2004)
limit to listwords (2001)
Sending an email to all )or some) email addresses int he database (1999)
Adding more than one item and QTY to cart (2000)
possible, WebCat2.0 and checkboxes-restated (1997)
forming a SKU (1999)
Moment of Thanks (1997)