Multiple return variables in a macro

Moderator: Benj

Post Reply
User avatar
Alan_37
Posts: 179
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 51 times
Been thanked: 54 times

Multiple return variables in a macro

Post by Alan_37 »

Hi ,

Just a simple Question is it possible to have more then 1 return Value in a Macro ? ,
just like Parameters you can have multiple .

I am able to create only 1 return Variable .

Thanks

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times

Re: Multiple return variables in a macro

Post by kersing »

Macros can only return 1 variable, multiple return variables is not possible.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

mesut25
Posts: 14
Joined: Mon May 23, 2016 3:01 pm
Has thanked: 3 times

Re: Multiple return variables in a macro

Post by mesut25 »

I want to learn a comeback in a macro variables


Thanks
Last edited by mesut25 on Sun Jun 05, 2016 11:10 pm, edited 1 time in total.

mesut25
Posts: 14
Joined: Mon May 23, 2016 3:01 pm
Has thanked: 3 times

Re: Multiple return variables in a macro

Post by mesut25 »

kersing wrote:Macros can only return 1 variable, multiple return variables is not possible.
I want to learn a comeback in a macro variables

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times

Re: Multiple return variables in a macro

Post by kersing »

I do not understand what you mean with:
I want to learn a comeback in a macro variables
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

mesut25
Posts: 14
Joined: Mon May 23, 2016 3:01 pm
Has thanked: 3 times

Re: Multiple return variables in a macro

Post by mesut25 »

kersing wrote:I do not understand what you mean with:
I want to learn a comeback in a macro variables
I'm sorry i do not know English
I have createded a macro in my program. I wanted a byte value to return. How to do? IN macro properties I have selected Byte as return type. Which value it will return? How to define it?

Thanks in advance
Macros can return only 1 variable , tell a simple example

I want to learn logic

I'm sorry I do not know english

Macros A simple example can return only 1 variable

I want to learn the logic
Attachments
Flowcode1.fcf
(11.5 KiB) Downloaded 560 times

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times

Re: Multiple return variables in a macro

Post by kersing »

To set the return value of a macro you need to add a calculation icon inside the macro. In the calculation set:

Code: Select all

.Return = .value
Where value can be a constant value (like 1, 2 or 200) or another variable.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Post Reply