Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with Russian text in VFP
Message
De
11/04/2006 11:55:44
 
 
À
11/04/2006 11:18:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Divers
Thread ID:
01110111
Message ID:
01112478
Vues:
232
This message has been marked as a message which has helped to the initial question of the thread.
I'm very happy to hear that it helps.

Also in VFP9 you can use FontCharSet property to properly display text on form or in editbox without changing the default language for non-Unicode programs.

Try this code:
_Screen.FontCharSet = 204 &&Cyrillic

lcUtf8 = filetostr( 'russian_utf8.txt' )
lcRussian = strconv( SUBSTR(lcUtf8, 3), 11)

?lcRussian 

WAIT WINDOW "IS it ok?"

lcUnicode = filetostr( 'russian_unicode.txt' )
lcRussian = strconv( SUBSTR(lcUnicode, 3), 6)

?lcRussian 

WAIT WINDOW "IS it ok?"

_Screen.FontCharSet = 1 &&Reset to default value
/A new technology turns into completely outdated stuff before you have a time to read "Getting Started..." section.
/If there are some "system programmers" then others are unsystematic.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform