Returning a result from a macro
Posted: Mon Feb 09, 2015 12:34 pm
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
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