Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Used a define in form object property
Message
 
À
30/08/1996 00:36:40
Anthony Scott
Alvern, Incorporated
Houston, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00006898
Message ID:
00006984
Vues:
65
>I have a large DB that and 2 of its fields are labled zip and zip2. The
>zip field contains the first 3 #'s of the zip and the zip2 column
>contains the last 2 #'s. How can I combine the two fields into one that
>has a 5 number zip?

add a field (total_zip?) defined as char 5.
if the two fields are defined as Char 3 and Char 2,
replace total_zip with zip + zip2

if the two fields are defined as numeric 3,0 and numeric 2,0
replace total_zip with right('000'+trim(str(zip)),3) + right('00'+trim(str(zip2)),2).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform