Re: Problems with [Math]
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 19931
interpreted = N
texte = Just change[Math][NumRevistas][/Math]to[Math]NumRevistas[/Math]and sit back and breath a big sigh of relief!Good luck!Sandy>Sorry to bother you all, since I know this has been posted before, I >tought 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 in >the 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 the >counters incrementing.>>My problem is that I don't know how to display the math variables once I >am 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][Math >show=F]NumRevistas=NumRevistas+[quantity][/Math][/ShowIf]>[ShowIf [TextE]=5][Math >show=F]NumCamisetas=NumCamisetas+[quantity][/Math][/ShowIf]>[ShowIf [TextE]=6][Math show=F]NumPins=NumPins+[quantity][/Math][/ShowIf]>[ShowIf [TextE]=7][Math >show=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 you >display a [Math] variable?>>Thanks in advance for your help,>Charles>>>_______________________________________________________________>Institut Balear de Comunicacions, S.L.>Gremio Tejedores 22, 1>07009 Palma de Mallorca, Spain>_____________________________________________>Tel: +34 971.43.12.77>Fax: +34 971.43.08.18 >E-mail: ckefauver@ibacom.es>URL: 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:
Just change
[math][NumRevistas][/Math]to
[math]NumRevistas[/Math]and sit back and breath a big sigh of relief!Good luck!Sandy>Sorry to bother you all, since I know this has been posted before, I >tought 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 in >the 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 the >counters incrementing.>>My problem is that I don't know how to display the math variables once I >am 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][Math >show=F]NumRevistas=NumRevistas+[quantity][/Math][/ShowIf]>[ShowIf [TextE]=5][Math >show=F]NumCamisetas=NumCamisetas+[quantity][/Math][/ShowIf]>[ShowIf [TextE]=6][Math show=F]NumPins=NumPins+[quantity][/Math][/ShowIf]>[ShowIf [TextE]=7][Math >show=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 you >display a
[math] variable?>>Thanks in advance for your help,>Charles>>>_______________________________________________________________>Institut Balear de Comunicacions, S.L.>Gremio Tejedores 22, 1>07009 Palma de Mallorca, Spain>_____________________________________________>Tel: +34 971.43.12.77>Fax: +34 971.43.08.18 >E-mail: ckefauver@ibacom.es>URL: http://www.ibacom.es/>_____________________________________________>Public PGP signature (Clave publica PGP):>http://www.ibacom.es/PGP/kefauver.txt>_______________________________________________________________>>>
Sandra L. Pitner
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:
Pre-flight public flag (1997)
Paranoid about serial numbers...not (1998)
printing twice? and fix (1997)
[WebDNA] Build Name for 6.1 (2008)
Google Web Accelerator (2005)
Setting up shop (1997)
Search design (1997)
Bug or syntax error on my part? (1997)
Reversing [ipaddress] normalization (1998)
[WebDNA] WebDNA 8.2 on Debian 8 (2016)
Shopping cart not being assigned (1999)
credit card (1997)
WC2b12: Yes, Formulas.db is for real (1997)
PROBLEM (1997)
[WebDNA] Electronic Delivery (download) (2008)
RE: [WebDNA] IIS 6.0 Custom Errors & WebDNA 6.2 (2009)
2.0 Info (1997)
File Upload (1997)
100% sorry about that (1998)
RE: OK, here goes... (1997)