Re: String variable made with other variables?
Posted by
lechristophe on
Feb 25, 2016; 4:08pm
URL: http://imagej.273.s1.nabble.com/String-variable-made-with-other-variables-tp5015716p5015718.html
Hi Philippe,
In a classical macro way you would concatenate the sting directly like this:
run("Make Substack...", "delete slices=" + b + "-" + e);
Would this work for you?
Christophe
On Thu, Feb 25, 2016 at 4:55 PM, Philippe P <
[hidden email]> wrote:
> 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>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html