Re: How to work with return values in macro?
Posted by
Herbie on
URL: http://imagej.273.s1.nabble.com/How-to-work-with-return-values-in-macro-tp5024402p5024407.html
Greetings Alex,
you could test if the operation was successful and decide what to do if yes
or no, e.g.
// ... some code ...
if ( File.delete(path) ) {
// ... do something ...
} else
exit("File could not be deleted.");
//
You may also ignore the return value.
HTH
Herbie
:::::::::::::::::::::::::::::::::::::::::::::::
AAM71 wrote
> Hi All,
>
> How to work with return values in macro? For example, File.delete(path)
> returns 1 if delete is successful. Then how I can get access to this
> return value?
> Sorry for a stupid question.
>
> Best regards,
> Alex
>
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
Sent from:
http://imagej.1557.x6.nabble.com/--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html