Login  Register

Re: What am I missing with fromCharCode?

Posted by Herbie on Oct 16, 2017; 8:15am
URL: http://imagej.273.s1.nabble.com/What-am-I-missing-with-fromCharCode-tp5019538p5019539.html

Bonjour Philippe!

Does the following code work for you?

str = "µ";
xstr = "x [" + str + "m]";
ystr = "y [" + str + "m]";
print( xstr, ystr );
str = fromCharCode(956);
xstr = "x [" + str + "m]";
ystr = "y [" + str + "m]";
print( xstr, ystr );

No problems here.

Regards

Herbie

::::::::::::::::::::::::::::::::::::::::::
Am 16.10.17 um 09:32 schrieb Philippe CARL:

> str     = "µ";
>
>                  xstr   = "x [" + str + "m]";
>
>                  ystr   = "y [" + str + "m]";
>
>                  
>
>                  for (i = 0; i != nResults; i++)
>
>                  {
>
>                                  xval  [i] = getResult(xstr , i);
>
>                                 yval  [i] = getResult(ystr , i);
>
>                  }

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html