Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find a bad zipcode
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01170759
Message ID:
01170792
Vues:
7
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform