Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code more logic
Message
De
31/08/2004 20:42:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
31/08/2004 04:33:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00937914
Message ID:
00938269
Vues:
25
The REPLACE can be simplified, if you don't use filters:
REPLACE ALL  CHAR18 WITH "3" FOR CHAR8="ÌäæÈ ÚãÇä "
...
If you have many more cases to replace, and need this often, you might store the old value and the new value in a table, and write a loop.

>hi all,
>i write this small code,it works,
>but i search for somthing more logic.
>
>
>USE NEWAMAR66
>SET FILTER TO  CHAR8="ÌäæÈ ÚãÇä                                         "
>REPLACE ALL  CHAR18 WITH "3"
>
>SET FILTER TO  CHAR8="ãÍÇÝÙÉ ÇÑÈÏ                                       "
>REPLACE ALL  CHAR18 WITH "8"
>
>SET FILTER TO  CHAR8="ÛÑÈ ÚãÇä                                          "
>REPLACE ALL  CHAR18 WITH "2"
>.
>.
>.
>
>
>
>thanks
>m.qasem
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform