Login  Register

Re: string macro functions

Posted by Gabriel Landini on Nov 18, 2020; 8:10am
URL: http://imagej.273.s1.nabble.com/string-macro-functions-tp5024194p5024196.html

On Wednesday, 18 November 2020 02:09:32 GMT you wrote:
> ID="A09";
> X=ID.charAt(1);
> print(X);

That macro returns "0" in my installation v1.53g15, which is the expected
value: the character at position 1 of the ID string is a "0".

And  X=ID.charAt(0);  returns "A"
Cheers

Gabriel

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