>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