Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Are you using TwilioX?
Message
De
06/12/2018 09:32:00
 
 
À
05/12/2018 16:32:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Application:
Desktop
Divers
Thread ID:
01664150
Message ID:
01664195
Vues:
40
Thank you.

>>If I'm not mistaken, the VFP messagebox() function will stop displaying characters once it hits a CHR(0) (i.e. uses C convention for string terminator).
>>When you convert "Hello" to Unicode, the result would be something like
>>"H"+CHR(0)+"e"+CHR(0)+"l"+CHR(0)+"l"+CHR(0)+"l"+CHR(0)+"o"+CHR(0)
>
>Correct. You can test it here:
>
MESSAGEBOX("Test-" + CHR(0) + "--second part")
>
>It only shows "Test-". That's a limitation of Windows, by the way, not VFP. If you use a DECLARE DLL to declare the unicode version, you can use the longer form:
>
>
DECLARE INTEGER MessageBoxW IN WIN32API INTEGER hWnd, STRING lpText, STRING lpCaption, INTEGER uType
>messageboxw(0, STRCONV("Unicode Text",12), STRCONV("Caption",12), 0)
>
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform