Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
English vs Chinese
Message
De
12/09/2005 05:39:15
 
 
À
12/09/2005 05:30:38
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01048606
Message ID:
01048658
Vues:
33
>wow...???
>
>sorry! may be I mislead you somehow...
>my problem is when a user input in, for say, textbox, how can we know is it english or chinese?!
I don't know the Chinese Code table but how I could did it if I want to check if the user input is Bulgarian or English:

In KeyPress Event of the TextBox:
LPARAMETERS nKeyCode, nShift

IF BETWEEN(nKeyCode,192,255)
   **** Bulgarian Input
ELSE
   **** English
ENDIF
This didn't handle the input of special chars as []-+= etc. They all accepted to be English :o)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform