Page 1 of 1

How can I use japanese in variables?

Posted: Thu May 30, 2013 2:46 pm
by Mag
Hi all,

I have all the languages localization texts (including Japanese) in fields, one for each language. All appairs OK.

When I get a chunk of the text from a field and put it into another field all appears OK:

Code: Select all

 
   set the unicodeText of the field test to the unicodeText of item 2 of line 4 of field japanese

Obviously, when you try to do this with a variable, this don't work:

Code: Select all

   set the unicodeText of myVariable to the unicodeText of item 2 of line 4 of field japanese  ##Don't work, pseudo code
   set the unicodeText of the field test to unicodeText of myVariable
How do you suggest to proceed to put that chunk in a variable before to use it in other fields?

Re: How can I use japanese in variables?

Posted: Thu May 30, 2013 2:59 pm
by Mark
Hi,

This should be:

Code: Select all

   put the unicodeText of item 2 of line 4 of field "japanese" into myUnicodeVar
   set the unicodeText of the field "test" to myUnicodeVar
Note that myUnicodeVar contains binary data, not text. Also note the use of quotes.

Kind regards,

Mark

Re: How can I use japanese in variables?

Posted: Thu May 30, 2013 3:22 pm
by Mag
Thank you Mark (I'm just reading your book these days), works great.

Do you know if there is a way to use it also in ask and answer dialogs?

Re: How can I use japanese in variables?

Posted: Thu May 30, 2013 3:34 pm
by Mark
Hi,

You should be able to use the htmlText for dialogs:

Code: Select all

put the htmlText of fld "test" into myHtmlVar
answer warning myHtmlVar
Page 41 of the book :-)

Kind regards,

Mark

Re: How can I use japanese in variables?

Posted: Thu May 30, 2013 4:24 pm
by Mag
Thank you, works great!

PS
Found also in the book :)