Re: wrong input values?

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12504
interpreted = N
texte = >You can probably take another approach to solve this problem, too. For >example, maybe you can do some math on the value entered to determine if it >is a number or some letters. Perhaps simply by dividing the entered value >by 1 would make WebCat2 respond with either a number or nothing.Yes, I believe that would work. The [math] context return nothing (blank) when there's a syntax error in the equation.I think [math]ABC[/math] or perhaps [math]ABC/1[/math] would return nothing so you could check for that with [ShowIf] (as long as you haven't created a math variable of the name ABC). Once you do these changes, try typing pi for the number and see what happens.Obviously WebCatalog should check for such illegal values in things like quantities. Thanks for finding that one. Your friend certainly can't complain when bug fixes appear rapidly.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: wrong input values? (Grant Hulbert 1997)
  2. Re: wrong input values? (Kenneth Grome 1997)
  3. wrong input values? (Kevin Furuta 1997)
>You can probably take another approach to solve this problem, too. For >example, maybe you can do some math on the value entered to determine if it >is a number or some letters. Perhaps simply by dividing the entered value >by 1 would make WebCat2 respond with either a number or nothing.Yes, I believe that would work. The [math] context return nothing (blank) when there's a syntax error in the equation.I think [math]ABC[/math] or perhaps [math]ABC/1[/math] would return nothing so you could check for that with [showif] (as long as you haven't created a math variable of the name ABC). Once you do these changes, try typing pi for the number and see what happens.Obviously WebCatalog should check for such illegal values in things like quantities. Thanks for finding that one. Your friend certainly can't complain when bug fixes appear rapidly.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

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:

Encrypting WebDNA Templates and eligible files (1999) 2 easy questions re: [showif] and [sendmail] (1997) Looping control (1997) [WriteFile] problems (1997) [OT] What System Software? (2003) Okay, I give up... (1999) Who is John Jakovich? (1999) [BULK] [WebDNA] How to code a 301 redirect (2009) Default contains WEBDNA (1998) Does ".tpl" index with SE's? (2003) [WebDNA] eCommerce in 7.0 but not in 7.1? (2012) Lat & Long = Distance (2002) Exclamation point (1997) Why does setheader provide a db= parameter? (2005) New syntax feedback for 4.0 (2000) FWD: WebCatalog and .TMPL (1997) How much is the Upgrade (2000) Shopping Cart Problem (1998) SKU (1997) How Many SKU's is enough? (1997)