Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unicode to _clipboard
Message
From
22/11/2020 15:30:40
 
 
To
22/11/2020 13:58:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01677281
Message ID:
01677282
Views:
115
This message has been marked as the solution to the initial question of the thread.
Likes (2)
>Sir, I have this Unicode string
>
>
tcUnicodeText=[اسلام علیکم]
>I want to copy this string to _cliptext
>

Tariq, in VFP you don't have Unicode strings that you assign to variables. What you have, in this case, is a string that is represented in ANSI Arabic (code page 1256).

Before passing the string to Sergey's function, you must STRCONV(yourString, 5, 1256, 1). Then, you'll have a UNICODE string.
tcUnicodeText=STRCONV([اسلام علیکم], 5, 1256, 1)
(the order of arguments should be string, 5, 1256, 1, but the RTL scripting changes the order of arguments - I expect you know how to write it down correctly).
----------------------------------
António Tavares Lopes
Previous
Reply
Map
View

Click here to load this message in the networking platform