Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find a bad zipcode
Message
From
17/11/2006 13:19:02
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01170759
Message ID:
01170792
Views:
6
It works with a slight addition to handle the blenks

set filter to ! (isnull(Zip) or transform(val(Zip), '@L 99999') == Zip or isblank(zip))

I had forgotten that transform includes a format provision,

Thanks


>Maybe
>
>
set filter to ! (isnull(ZipCode) or transform(val(ZipCode), '@L 99999') == ZipCode)
>
>>the following code:
>>
>>set filter to ! transform(val(ZipCode)) == ZipCode
>>
>>reveals blanks and zipcodes beginning with 0 as well as those containing alpha characters.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform