Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code more logic
Message
From
31/08/2004 20:42:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
31/08/2004 04:33:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00937914
Message ID:
00938269
Views:
26
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform