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é