Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with Russian text in VFP
Message
From
11/04/2006 11:55:44
 
 
To
11/04/2006 11:18:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Miscellaneous
Thread ID:
01110111
Message ID:
01112478
Views:
239
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform