Re: How to work with return values in macro?

Posted by CARL Philippe (LBP) on
URL: http://imagej.273.s1.nabble.com/How-to-work-with-return-values-in-macro-tp5024402p5024403.html

Dear Alex,
just do:
value = File.delete(path);
print(value);
That's it!
My best regards,
Philippe

Philippe CARL
Laboratoire de Bioimagerie et Pathologies
UMR 7021 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 42 89

----- Mail original -----
De: "Aleksandr Mironov" <[hidden email]>
À: "imagej" <[hidden email]>
Envoyé: Jeudi 21 Janvier 2021 16:22:06
Objet: How to work with return values in macro?

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

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html