Re: the selectedText of a Unicode field

2011-06-17 Thread Mark Schonewille
Hi Slava,

You can try this:

set the unicodetext of fld YourSelection to the unicodetext of the selection

or

set the unicodetext of fld YourSelection to the unicodetext of the 
selectedChunk

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 17 jun 2011, at 09:31, Slava Paperno wrote:

 Briefly, here is the problem:
 
 put the selectedText of field BilingualText of this card into
 tCurrSelection
 --the field may hold, for example, the two words Боб Bob, which is the
 string assigned to the unicodeText prop. of the field
 
 set the unicodeText of field YourSelection of this card to tCurrSelection
 
 --alternatively:
 set the unicodeText of field YourSelection of this card to
 uniEncode(tCurrSelection, UTF8)
 
 Neither alternative works for bilingual text. One version works only for
 English, the other works only for Russian. In each case, the other language
 is unreadable in field YourSelection.
 
 In detail:

snip
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

RE: the selectedText of a Unicode field

2011-06-17 Thread Slava Paperno
Yes! the unicodetext of the selection is the answer. Forget the
selectedText.

the unicodetext of the selectedChunk works as well.

Thank you, Mark!

S.

 -Original Message-
 From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
 boun...@lists.runrev.com] On Behalf Of Mark Schonewille
 Sent: Friday, June 17, 2011 5:28 AM
 To: How to use LiveCode
 Subject: Re: the selectedText of a Unicode field
 
 Hi Slava,
 
 You can try this:
 
 set the unicodetext of fld YourSelection to the unicodetext of the
 selection
 
 or
 
 set the unicodetext of fld YourSelection to the unicodetext of the
 selectedChunk
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 New: Download the Installer Maker Plugin 1.6 for LiveCode here
 http://qery.us/ce
 
 On 17 jun 2011, at 09:31, Slava Paperno wrote:
 
  Briefly, here is the problem:
 
  put the selectedText of field BilingualText of this card into
  tCurrSelection
  --the field may hold, for example, the two words Боб Bob, which is
 the
  string assigned to the unicodeText prop. of the field
 
  set the unicodeText of field YourSelection of this card to
 tCurrSelection
 
  --alternatively:
  set the unicodeText of field YourSelection of this card to
  uniEncode(tCurrSelection, UTF8)
 
  Neither alternative works for bilingual text. One version works only
 for
  English, the other works only for Russian. In each case, the other
 language
  is unreadable in field YourSelection.
 
  In detail:
 
 snip




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode