Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unicode in VFP
Message
De
20/06/2002 08:27:16
 
 
À
19/06/2002 23:52:05
An Nguyen
Chinfon Commercial Bank
Ho Chi Minh City, Vietnam
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00669599
Message ID:
00670549
Vues:
30
This message has been marked as the solution to the initial question of the thread.
>Yes, creating unicode character constants in VFP PRG file.
>
>I want to show my message to user in program.

So,
First of all you should get an UNICODE/UTF binary dumb of your message. I am working over a demo form that will allow to save/read UNICODE/UTF data from a VFP memo(binary) or character(binary) field and show it in MS Forms 2.0 controls. So that they are

Example for UNICODE character constants. (It is the word "example" in different languages)
#DEFINE Japanese_example CHR(139)+CHR(79)

#DEFINE Russian_example CHR(63)+CHR(4)+CHR(64)+CHR(4)+CHR(56)+CHR(4)+CHR(60)+CHR(4)+CHR(53)+CHR(4)+CHR(64)+CHR(4)

#Define Korean_example CHR(118)+CHR(0)+CHR(237)+CHR(0)+CHR(32)+CHR(0)+CHR(100)+CHR(0)+CHR(229)+CHR(30)+CHR(0)

#DEFINE Chezh_example CHR(112)+CHR(0)+CHR(89)+CHR(1)+CHR(237)+CHR(0)+CHR(107)+CHR(0)+CHR(108)+CHR(0)+CHR(97)+CHR(0)+CHR(100)+CHR(0)

#DEFINE Chineese_example CHR(139)+CHR(79)+CHR(80)+CHR(91)
Definening constants will not help you enough, because WAIT WINDOW and other standard VFP commands work with ANSI strings and are Unicode-unaware. So that you have to create own substitutes of wait window, MessageBox, etc.

Because it is not our main work at the moment, I work over this project in my spare time. But as my boss has said, if we get a contract for it - we can bring the project forward.

Regards
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform