Re: Math Context
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 15957
interpreted = N
texte = Thanks... I did find an extra character that didn't belong, but not in the data that was entered. I finally found a trailing ]. Now [math] seems to be working. I also tested some combinations to see what may give me problems later.I found extra characters like a space for example are ignored and don't give a problem. (text value to convert = 5000space). The space, or even a carrage return is ignored. But how can I assure that values are clean so I won't screw up my math? Is there a routine usually used for this. Maybe they should be stored as numbers intitially and they get tested at entry time... ??Thanks again,RHProutybristol@interpage.net------ Original Message ------>>I can add two variables (as in [math][varone]+[vartwo][/math]), but if I >>add another, [varthree] no luck. >>What does 'no luck' mean here? Is the result wrong, empty, or some error >message?>>If I had to guess, I'd say your varthree has some non-numeric text in it, >perhaps a return or something. Try displaying the math equation without >[math] wrapped around it, so you can see the true values of those variables:>>|[varone]+[vartwo]+[varthree]|>>and do a View Source to see if any extra weird characters are in there.>>Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====>Pacific Coast Software | WebCatalog, WebMerchant,>11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,>San Diego, CA 92128 | Typhoon>619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/>>>>
Associated Messages, from the most recent to the oldest:
Thanks... I did find an extra character that didn't belong, but not in the data that was entered. I finally found a trailing ]. Now
[math] seems to be working. I also tested some combinations to see what may give me problems later.I found extra characters like a space for example are ignored and don't give a problem. (text value to convert = 5000space). The space, or even a carrage return is ignored. But how can I assure that values are clean so I won't screw up my math? Is there a routine usually used for this. Maybe they should be stored as numbers intitially and they get tested at entry time... ??Thanks again,RHProutybristol@interpage.net------ Original Message ------>>I can add two variables (as in
[math][varone]+[vartwo][/math]), but if I >>add another, [varthree] no luck. >>What does 'no luck' mean here? Is the result wrong, empty, or some error >message?>>If I had to guess, I'd say your varthree has some non-numeric text in it, >perhaps a return or something. Try displaying the math equation without >
[math] wrapped around it, so you can see the true values of those variables:>>|[varone]+[vartwo]+[varthree]|>>and do a View Source to see if any extra weird characters are in there.>>Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====>Pacific Coast Software | WebCatalog, WebMerchant,>11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,>San Diego, CA 92128 | Typhoon>619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/>>>>
RH Prouty
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:
Re:Has this happened to you? (1997)
Platform Switch (1997)
Country & Ship-to address & other fields ? (1997)
Help! WebCat2 bug (1997)
Passing WebCat data to SSL server (1997)
problems with 2 tags shakur (1997)
suffix mapping for NT? (1997)
matching shipto and others (1998)
Getting total number of items ordered (1997)
WebCat2 beta 11 - new prefs ... (1997)
RE: Signal Raised (1997)
Country & Ship-to address & other fields ? (1997)
More news on 5.0 (2003)
Extended [ConvertChars] (1997)
Sorry I didn't pay attention-but ??? (1997)
pdf files? (2001)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Delayed Redirect (2000)
WebDNA to PHP (2008)
Problem saving images in Explorer (2001)