-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
replace
values = split(lines[1], "\t");
with
values = split(lines[lengthOf(lines)-1], "\t");
Volker
Bonds, Ray a écrit :
| Wayne,
|
| Thanks for your help on this. I have one more question. Is there an
| easy way to always get the last line of the "summary window"?
| I have everything else done I just keep getting the first line of the
| summary window rather than the last.
|
|
|> I am having a hard time figuring out how to get the summarized data
|> (Count, Average Area, Average Size, etc.) from the Summary window in
|> the macro language. I see that there is a getResults() function for
|> the Results window, but I haven't seen anything in the macro language
|> documentation that shows how to get the summarized data.
|
| This macro gets the values from the first line of a "Summary" window:
|
| selectWindow("Summary");
| lines = split(getInfo(), "\n");
| headings = split(lines[0], "\t");
| values = split(lines[1], "\t");
| for (i=0; i<headings.length; i++)
| print(headings[i]+": "+values[i]);
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.orgiD8DBQFIMoOgxZKX7A/4oMERAo4vAKDN5YzbNCtrTIugFJpyeVoByMW1TACfRGJ/
rOeO9fwCJwOxlI7mmfZpnUU=
=JQda
-----END PGP SIGNATURE-----
--
passerelle antivirus du campus CNRS de Montpellier
--