Page 1 of 1

Flowcode variables in C in a macro

Posted: Sun Nov 23, 2008 11:09 am
by bert
I have a macro is called Mtest, with a local variable called Mtest.VarTest.

So in a C-box (in that same macro) I would expect this variable to be called FCV_MTEST.VARTEST but that doesn't work. What would be the proper syntax in this case?

Cheers,
Bert

Re: Flowcode variables in C in a macro

Posted: Sun Nov 23, 2008 3:58 pm
by Sean
Local variable names are prefixed with FCL_ and are in upper case. There is no reference to the macro name because they are local to that macro.

Your example variable name would be FCL_VARTEST.

This is the case for parameters passed to the macro aswell as local variables declared within the macro.

Re: Flowcode variables in C in a macro

Posted: Mon Nov 24, 2008 1:04 pm
by bert
Ah, this works perfectly, thanks Sean.