Custom Results Tables - Formatting Issue!

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Custom Results Tables - Formatting Issue!

This post has NOT been accepted by the mailing list yet.

I am trying to write a macro for fiji, which will analyze a arealist and print only the first and last area
from each list into a results table
currently the output table appears but contains no numbers

run("Clear Results");
var first, last
first = 0
last = 0
    selectWindow("AreaContainer results");
    first += getResult('Area', nResults-nResults);
    last += getResult('Area', nResults);
     setResult("AreaFirst", 0, first);
     setResult("AreaLast", 0, last);

thank you for your help,

Sarah H.