Login  Register

Re: getting data from a text window

Posted by PEARSON Matthew on May 11, 2014; 8:55am
URL: http://imagej.273.s1.nabble.com/getting-data-from-a-text-window-tp5007674p5007677.html

Hi Chris,

As I understand it you can only use those functions on the table named "Results" so you need to rename your table to "Results" first then you can use the results table functions.

Cheers,

Matt



> On 11 May 2014, at 00:46, christopher of the family hunt coulon <[hidden email]> wrote:
>
> Is there any way in a macro to get the information in a text window?  For example, I have a text window that has rows and columns just like the Results Table, and I would like to sum the data in one of the columns of the text window just as I would by using
>
> for (i = 0; i < nResults; i++) {
>    sum += getResult(“Area”, i);
> }
>
> for the Results Table.  Can this be done for a text window?
>
> Chris Coulon
> gaiag.net
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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