String variable made with other variables?

Posted by pognonec on
URL: http://imagej.273.s1.nabble.com/String-variable-made-with-other-variables-tp5015716.html

Hi list,

I want to write a Macro to create substacks with variables to define of the portion to cut out.
I have variable "b" and "e" that store the beginning and ending frames of the deletion needed.
I would like to store in a variable "d" the string:
b-e
so I can use this string variable to set-up the deletion needed in:
run("Make Substack...", "delete slices=&d");

I cannot get this variable d to store a string containing the b and e values with a dash in between...

Any suggestion would be appreciated.

Thanks,
Philippe

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