Copy/paste variable

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times

Copy/paste variable

Post by jgu1 »

Hi all!

I would ask, is it possible to copy variables from one project to another project.

Understood in that way if I'm making a project (or mix two project) and want to copy something from another FC, I copy the program and put it in FC and the FC says that variables not existing. Is it possible perhaps, in some way first to copy the variables and then flowchart :?: :D
I am not familiare with C.

Thank´s in advance

Jorgen

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Copy/paste variable

Post by medelec35 »

Hi Jorgen,
If you export a macro, all the variables within that macro will also be exported with it.
If you then use import function on your new flowchart, the variables contained within macro will also get imported,

Export & Import can be found within the macro menu.

If you want to export Main macro, then in Flowcode 5 it's made easier by using the Duplicate macro function.
Just Duplicate to a new macro called Main1 for example, export Main1.

Then on your new flowchart import Main1, highlight all the icons, cut, then paste in Main macro.

Hope this helps

Martin
Martin

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times

Re: Copy/paste variable

Post by jgu1 »

Hi Martin. :D

Thank´s.

I have tested both of your suggestions. It works fine with export and import of macros. But when I look in the "properties for variables" are the characteristics have not been imported.

There must be something I still doing wrong. But what?

regard

Jorgen

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times

Re: Copy/paste variable

Post by jgu1 »

jgu1 wrote:Hi Martin. :D

Thank´s.

I have tested both of your suggestions. It works fine with export and import of macros. But when I look in the "properties for variables" are the characteristics have not been imported.

There must be something I still doing wrong. But what? I tested with John Crows "simple thermometer with LM35z" I try to import it in a new project.

regard

Jorgen
Attachments
LM335Z Local Temperature Display-PortE.fcf
(11 KiB) Downloaded 250 times

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Copy/paste variable

Post by medelec35 »

I have just checked, and FC5 does not export/import like FC4 does.
You are correct, no variables gets imported at all!

So there is either a different way to do this, or there is a bug with FC5 or this method of importing variables has been deliberately removed?
Shame if the latter.
My guess is a bug?
Only Staff at Matrix can answer that question.

Martin
Martin

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times

Re: Copy/paste variable

Post by jgu1 »

Ok, Martin! Thank´s for your test. I hope MM staff see this. :?: so for now, the hard way. creating variables

Jorgen
Last edited by jgu1 on Wed May 23, 2012 1:33 pm, edited 1 time in total.

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Re: Copy/paste variable

Post by JonnyW »

Hi. Yes, we've seen this! As I haven't done anything specifically with the import and export for v5, I think this will be a bug. I'll take a look and let you know of anything, though its likely this will be fixed only in v5.3 which I think we will be releasing at the time of the ARM/AVR/dsPIC variants.

Cheers,

Jonny

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times

Re: Copy/paste variable

Post by jgu1 »

Thank you Jonny!

Jorgen

Post Reply