Re: Number searching/formats

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16569
interpreted = N
texte = >price=[format 10.2f][form.price][/format] > >if the value entered was 19,000. the value saved would be 19.00. (BAD) >if the value entered was 19000 the value saved would be 19000.00. (GOOD)There are a couple things you can do. You could sense the comma with [ShowIf [form.price]^,] and display an error message, or if you're using 2.1 you could strip out the comma with a custom [ConvertChars] database that maps , to .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: Number searching/formats (PCS Technical Support 1998)
  2. Re: Number searching/formats (apc Information 1998)
  3. Re: Number searching/formats (Grant Hulbert 1998)
  4. Re: Number searching/formats (Kenneth Grome 1998)
  5. Re: Re: Number searching/formats (apc Information 1998)
  6. Re: Number searching/formats (Kenneth Grome 1998)
  7. Number searching/formats (APC Home PC 1998)
>price=[format 10.2f][form.price][/format] > >if the value entered was 19,000. the value saved would be 19.00. (BAD) >if the value entered was 19000 the value saved would be 19000.00. (GOOD)There are a couple things you can do. You could sense the comma with [ShowIf [form.price]^,] and display an error message, or if you're using 2.1 you could strip out the comma with a custom [convertchars] database that maps , to .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/ 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:

WebCatalog can't find database (1997) Sami (1998) Forcing Paragraph Breaks on Results (1998) Sandbox CPU Usage Issue (2005) plugin-acgi, different results (1997) Multiple Passwords (1997) Help w/Multi User Admins (1997) Searching multiple Databases (1997) Press Release hit the NewsWire!!! (1997) Show only certain items (2002) SKU generator? (1998) WebCat and Personal Web Server (1998) about this server and links to who (1997) Shopping Cart Problem (1998) Speaking of... (1999) Setting up shop (1997) b12 cannot limit records returned and more. (1997) Apache2 connector (2003) 2.0Beta Command Ref (can't find this instruction) (1997) [WebDNA] Webdna, Css & ie (2011)