Page 1 of 1

Returning a result from a macro

Posted: Mon Feb 09, 2015 12:34 pm
by jim_g
Hi
I am trying to write a simple utility macro that receives a character, and returns the resulting ASCII value as a two character string with a leading zero added if necessary.

I know that I shall kick myself when I hear the answer, (I'm still new with Flowcode!) but how do I implement the return value in a Flowcode macro please (the equivalent of the 'return' keyword) I have tried return =, Return = and RETURN = .resultString to no avail. Also when I select a return type, it does not 'stick', i.e., when I set Return type to string, close and re-open the Edit Macro Details dialogue, the return type field is blank. I know that I could use a global variable, I'm trying to make it easier to re-use the code in the future though.

The help topic for setting up a new macro, and its video, seems unhelpful (I'm probably looking in the wrong place) and I also cannot locate a list of reserved words that might give a clue.

Regards

Jim

Re: Returning a result from a macro

Posted: Mon Feb 09, 2015 1:14 pm
by LeighM

Code: Select all

.Return =  .resultString
"re-open the Edit Macro Details dialogue, the return type field is blank"
... now that looks like a bug, thanks

Re: Returning a result from a macro

Posted: Mon Feb 09, 2015 1:48 pm
by jim_g
Thanks for that. For the future, where (which section) can I find that kind of information (e.g. where in the help files, etc), please?
Jim

Re: Returning a result from a macro

Posted: Tue Feb 10, 2015 6:10 pm
by Benj
Hi Jim,

We try to provide all our Flowcode related help here in the wiki: http://www.matrixtsl.com/wiki/index.php?title=Main_Page

Anything you can't find there then please ask and we will do our best to help with an answer.