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,RHProuty bristol@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:

    
  1. Re: "+" in math context ( John Peacock 2004)
  2. Re: "+" in math context ( Donovan Brooke 2004)
  3. "+" in math context ( Donovan Brooke 2004)
  4. Re: Math Context (Joseph Sullivan 2001)
  5. Re: Math Context (Brian Fries 2001)
  6. Re: Math Context (Joseph Sullivan 2001)
  7. Re: Math Context (Alain Russell 2001)
  8. Re: Math Context (Joseph Sullivan 2001)
  9. Re: Math Context (Anup Setty 2001)
  10. Re: Math Context (Anup Setty 2001)
  11. Re: Math Context (Joseph Sullivan 2001)
  12. Re: Math Context (Dale Therio 2001)
  13. Re: Math Context (Anup Setty 2001)
  14. Math Context (Joseph Sullivan 2001)
  15. RE:math context ignores date prefs? (John Hill 1998)
  16. math context ignores date prefs? (Matthias Precht 1998)
  17. Re: Math Context (RH Prouty 1998)
  18. Re: There's a bug in the math context ... (Kenneth Grome 1997)
  19. Re: There's a bug in the math context ... (Grant Hulbert 1997)
  20. There's a bug in the math context ... (Kenneth Grome 1997)
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,RHProuty bristol@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:

Navigator Parsing (1997) emptying shopping carts and orders folder (2004) Lost and Recovered. (1998) Search in 2 or more catalogs (1997) WebCatalog NT beta 18 now available (1997) Emailer Set Up (1997) HELP WITH DATES (1997) [WebDNA] Still having problems (2008) WebDelivery: One step closer !! (1997) Nested tags count question (1997) Date search - yes or no (1997) Hairy Shipping Monster (2006) How does WebCatalog search the database? (1997) still having shipCost.db Problem (1997) Questions To Answer (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) carriage returns in data (1997) Hiding HTML and breaking the page (1997) hmmm (2006) Header values are not accepted (1998)