Dear Norbert,
as so often I'm puzzled by such examples because I think solutions are
there. The below works for me:
//
tabName = "Test.csv";
Table.create(tabName);
ColA = newArray(10);
ColB = newArray("","","","","","","","","","");
Table.setColumn("Nums", ColA, tabName);
Table.setColumn("Flags", ColB, tabName);
Table.set("Flags", 4, "ABC", tabName);
Table.update(tabName);
//
Regards
Herbie
:::::::::::::::::::::::::::::::::::::::::::::
Am 02.04.24 um 15:12 schrieb Norbert Vischer:
Hello all (Wayne?)
I want to use table columns for string flags, but I get the following problem:
When I save and reload the table, empty fields after the last flag are filled
with"NaN".
Explicitly setting fields to empty strings before saving does not help.
Best regards,
Norbert
tabName = "Test.csv";
Table.create(tabName);
ColA = newArray(10);
Table.setColumn("Nums", ColA, tabName);
Table.setColumn("Flags", newArray(0), tabName);
Table.set("Flags", 4, "ABC", tabName);
Table.update(tabName);
dir = getDir("temp");
Table.save(dir + tabName, tabName);
waitForUser;
open(dir + tabName);
/* output:
0
0
0
0
0 ABC
0 NaN
0 NaN
0 NaN
0 NaN
0 NaN
*/
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html