Re: case sensitivity in lookups

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15766
interpreted = N
texte = Lookup is case sensitive. However, the [search] function can do what you want - it's just not as compact. At 11:59 PM 12/21/97, you wrote: >Using the GeneralStore method of determining Sales Tax charges, the >abbreviation of the Ship-To state is requested value=[ShipToState] size=2> in the ShoppingCart.tmpl and the Invoice.tmpl >calls the taxRate formula [lookup >db=TaxRates.db&lookInField=State&value=[ShipToState]&returnField=taxRate&no tFoun >d=0.00] > >I've discovered in testing that if the TaxRates.db has the State field >entries as VA then a person who is lazy and enters as va, or a person >who is old-school and enters as Va is treated as notFound. It appears >that the lookup is case sensitive. Is there a way around this case >sensitivity? In this particular case it's easy to just enter into >TaxRates.db every case permutation of the three states where we must charge >taxes. This could get ugly in other lookups. > > > > Associated Messages, from the most recent to the oldest:

    
  1. Re: case sensitivity in lookups (Grant Hulbert 1997)
  2. Re: case sensitivity in lookups (John Hill 1997)
  3. case sensitivity in lookups (Jim Turney 1997)
  4. Re: case sensitivity in lookups (Kenneth Grome 1997)
Lookup is case sensitive. However, the [search] function can do what you want - it's just not as compact. At 11:59 PM 12/21/97, you wrote: >Using the GeneralStore method of determining Sales Tax charges, the >abbreviation of the Ship-To state is requested value=[ShipToState] size=2> in the ShoppingCart.tmpl and the Invoice.tmpl >calls the taxRate formula [lookup >db=TaxRates.db&lookInField=State&value=[ShipToState]&returnField=taxRate&no tFoun >d=0.00] > >I've discovered in testing that if the TaxRates.db has the State field >entries as VA then a person who is lazy and enters as va, or a person >who is old-school and enters as Va is treated as notFound. It appears >that the lookup is case sensitive. Is there a way around this case >sensitivity? In this particular case it's easy to just enter into >TaxRates.db every case permutation of the three states where we must charge >taxes. This could get ugly in other lookups. > > > > John Hill

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:

Mac OS X Server, Apache etc etc (1999) Signal Raised (1997) Template transformed itself into a database? (1998) [authenticate] (2000) So when do we get something similar? (1998) Webcat/Webmerchant part II (1998) Using WC for Bulk Emailings (1997) Bug Report, maybe (1997) international time (1997) Refering page (1998) webcat license???? (1997) Multiple cart additions (1997) WebCatalog/Mac 2.1b2 New Features (1997) WC Bulletin Board Issue (2003) [CART] inside a [LOOP] (1997) Some Questions (1997) WebCat2_Mac RETURNs in .db (1997) WebDNA performance comparisons? (2004) WebCat2 Append problem (B14Macacgi) (1997) Separate SSL Server (1997)