Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unicode question
Message
De
16/09/2003 13:22:59
 
 
À
17/08/2003 19:43:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00820908
Message ID:
00829519
Vues:
22
>Is there some way to preserve the same character I used in programs when the code page is changed in Windows?
>
>For example I have used in some program CHR(198) which is "¯" character in English (code page 1250), but when I change code page to Slovenian (code page 1252) the CHR(198) is "Ã" character.
>
>How to handle this problem?
>I need some unique (never (or almost never) used in typing) character to work with, independet of different code pages.

In W2K & XP, you can use unicode version of messagebox.
To print cyrillic alphabet use:
c = ''
FOR i=1 TO 0x5f
  c = c + CHR(i)+CHR(4)
  endf

c = c + CHR(0)+CHR(0)
declare integer MessageBoxW in user32 integer, ;
       string lcMessageText , string Titlebartext, integer Dialogtype
  
MessageBoxW( 0, c,c,0 )
Andrus
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform