Login  Register

Re: returning string from function

Posted by mcpeek on Aug 11, 2010; 1:24am
URL: http://imagej.273.s1.nabble.com/returning-string-from-function-tp3687299p3687301.html

On 8/10/2010 9:22 PM, David William Webster [via ImageJ] wrote:
Mark,

If you use "return TimeString;"  instead of  "return(TimeString)", it works.

return(TimeString) isn't the correct syntax. I think the macro porocesor is
interpreting as a zero. If you do

x = (TimeString); return x; then you get a zero.

David


Thanks David.

Still getting used to ImageJ.