Re: String variable made with other variables?
Posted by
CARL Philippe (LBP) on
Feb 26, 2016; 10:03am
URL: http://imagej.273.s1.nabble.com/String-variable-made-with-other-variables-tp5015716p5015730.html
Dear Philippe,
You need to do:
b= 10;
e = 2;
d = b + "-" + e;
print(d)
My best regards,
Philippe
-----Message d'origine-----
De : ImageJ Interest Group [mailto:
[hidden email]] De la part de Philippe P
Envoyé : vendredi 26 février 2016 11:03
À :
[hidden email]
Objet : Re: String variable made with other variables?
Thanks Curtis and Christophe for your help.
Indeed,
run("Make Substack...", "delete slices=" + b + "-" + e); does the job.
But I cannot set a variable string containing other variables to work. Curtis suggestion unfortunately does not work either. For example, if you try:
b= 10;
e = 2;
d = "b + "-" + e";
print(d)
You get an error on "-"
:-(
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html