Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number conversion
Message
De
17/06/2011 17:20:34
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
17/06/2011 04:40:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01514858
Message ID:
01515015
Vues:
80
>Dear All,
>I know it sounds crazy but how can make a conversion such as this one
>instead of typing the following will it be possible to do it in a loop
>Thanks to all
>
>
>If  fieldz  =7  replace fieldz  WITH 97  
>If  fieldz  =6  replace fieldz WITH 84  
>If  fieldz  =5  replace fieldz WITH 74  
>If  fieldz  =4  replace fieldz WITH 59 
>If  fieldz  =3  replace fieldz WITH 50  
>If  fieldz  =2  replace fieldz WITH 34  
>If  fieldz  =1  replace fieldz WITH 24
>
replace fieldz with icase(fieldz  =7, 97   ;
   ,    fieldz  =6, 84  ;
...
   ,   fieldz  =1, 24   ;
   ,   fieldz)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform