I'm confused by several macro examples on the list that include double slashes, both "//" and "\\"
after searching the list in vain. For example, the macro print() command can use: print("\\Clear"); I suppose the second \ is being escaped by the first, but I don't understand the general rules for using such a construction in the macro language. A recent thread used: //saveAs("Tiff", path.substring(0,path.length()-4)+" - green.tif"); Is there an online explanation of where one can and cannot use this constructions in the macro language? Or, is there a more generic paradigm I should be looking into? Thanks. Bill |
Hi Bill,
just checked the docs, "\\Clear" is a special feature of the print command wrt the log window, there is also a \\Update: <text>, it´s in the macro language docs. Instead, // starts a simple, C-style single-line comment, i.e. that line will not be executed! Mit freundlichen Grüßen / Best regards Joachim Wesner Leica Microsystems CMS GmbH | GmbH mit Sitz in Wetzlar | Amtsgericht Wetzlar HRB 2432 Geschäftsführer: Dr. Stefan Traeger | Dr. Wolf-Otto Reuter | Dr. David Roy Martyr | Colin Davis www.leica-microsystems.com Bill Christens-Barry <equipoise1@VERIZ An ON.NET> [hidden email] Gesendet von: Kopie ImageJ Interest Group Thema <[hidden email]. using // and \\ in macros? GOV> 17.08.2009 20:50 Bitte antworten an ImageJ Interest Group <[hidden email]. GOV> I'm confused by several macro examples on the list that include double slashes, both "//" and "\\" after searching the list in vain. For example, the macro print() command can use: print("\\Clear"); I suppose the second \ is being escaped by the first, but I don't understand the general rules for using such a construction in the macro language. A recent thread used: //saveAs("Tiff", path.substring(0,path.length()-4)+" - green.tif"); Is there an online explanation of where one can and cannot use this constructions in the macro language? Or, is there a more generic paradigm I should be looking into? Thanks. Bill ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ |
Free forum by Nabble | Edit this page |