Re: User-defined functions
Posted by
Andy Weller on
Aug 03, 2006; 4:01pm
URL: http://imagej.273.s1.nabble.com/User-defined-functions-tp3701916p3701924.html
Hi Volker,
Yes I am aware of this. Is was meant purely to demonstrate how I am
calling up the global variable outside of the macro (this, I guess, is
where my problem lies). It is a much more complicated macro than this.
Thanks, Andy
On Thu, 2006-08-03 at 16:25 +0200, Volker Bäcker wrote:
> I don't have experience with macros, but I would say that this code
> should have no visible effect, since there is no output command, like
> for example print, in it. Shouldn't it be something like:
>
> var someText = "";
> macro "Test" {
> test();
> print someText;
> }
>
> function test() {
> someText = "Here is some text";
>
> }
>
>
> Volker