User-defined functions
Posted by bene on Jun 30, 2015; 10:58am
URL: http://imagej.273.s1.nabble.com/User-defined-functions-tp5013357.html
Hi all,
i wrote a makro and therefor used a user defined function...
function index(a, value) {
for (i=0; i<a.length; i++)
if (a[i]==value) return i;
return -1;
}
and its call
to get the index of an array value.
If i run the makro it fails as well as in clipboard debug-mode.
If i outcomment this function the makro works fine.
Any ideas what could be wrong??
thanks in advance,
bene