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:

List Address Changed! (1998) Execute Applescript (1997) WebCatalog Technical Reference (1997) WebCat2b12--[searchstring] bug (1997) Bug Report, maybe (1997) multi-paragraph fields (1997) Insert Line Feed Character (2004) WebCat for Site Search? (1997) [WebDNA] Best WebDNA version for OS X Server 10.5.8 on PowerPC? (2010) Protect (1997) Auto entering Friday's date in a field (2002) Carts & Refering URLs (1997) E-mailer application times out (1998) Weird problems with [SHOWIF]s (1997) RE:DatabaseHelper (1997) [LOOKUP] (1997) why won't this work, please tell me??? (2001) return missing item (was:WebCat Sales) (1997) WebCat2: multiple currency support (1997) Quick Question About Sorting (1997)