Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String evaluation
Message
From
11/08/2011 13:40:09
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Miscellaneous
Thread ID:
01520699
Message ID:
01520732
Views:
50
>Hi all,
>
>i should like this condition :
>
>'ménage' = 'MENAGE'
>or
>'liège' = 'LIEGE'
>
>it's possible ?
>
>
>thank in advance

Once we made our own list that would take care of the translation of special characters into the official ICAO worldwide standard. We needed that to mach names that are found on travel documents and id cards. That will give better matches, for instance "BÄR" should match with "BAER" and not with "BAR"
.Value = STRTRAN(.Value,"Œ","OE")
.Value = STRTRAN(.Value,"Ž","Z")
.Value = STRTRAN(.Value,"Ÿ","Y")
.Value = STRTRAN(.Value,"À","A")
.Value = STRTRAN(.Value,"Á","A")
.Value = STRTRAN(.Value,"Ã","A")
.Value = STRTRAN(.Value,"Â","A")
.Value = STRTRAN(.Value,"Ä","AE")
.Value = STRTRAN(.Value,"Å","AA")
.Value = STRTRAN(.Value,"Æ","AE")
.Value = STRTRAN(.Value,"Ç","C")
.Value = STRTRAN(.Value,"È","E")
.Value = STRTRAN(.Value,"É","E")
.Value = STRTRAN(.Value,"Ê","E")
.Value = STRTRAN(.Value,"Ë","E")
.Value = STRTRAN(.Value,"Ì","I")
.Value = STRTRAN(.Value,"Í","I")
.Value = STRTRAN(.Value,"Î","I")
.Value = STRTRAN(.Value,"Ï","I")
.Value = STRTRAN(.Value,"Ð","D")
.Value = STRTRAN(.Value,"Ñ","N")
.Value = STRTRAN(.Value,"Ò","O")
.Value = STRTRAN(.Value,"Ó","O")
.Value = STRTRAN(.Value,"Ô","O")
.Value = STRTRAN(.Value,"Õ","O")
.Value = STRTRAN(.Value,"Ö","OE")
.Value = STRTRAN(.Value,"Ø","OE")
.Value = STRTRAN(.Value,"Ù","U")
.Value = STRTRAN(.Value,"Ú","U")
.Value = STRTRAN(.Value,"Û","U")
.Value = STRTRAN(.Value,"Ü","UE")
.Value = STRTRAN(.Value,"Ý","Y")
.Value = STRTRAN(.Value,"Þ","TH")
.Value = STRTRAN(.Value,"ß","SS")
Christian Isberner
Software Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform