Updating to Alternate Component

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times

Updating to Alternate Component

Post by Jay Dee »

Hi all,
Jumping between projects again, but..
I've used the std LCD component, however the finished hardware uses a 4x20 LCD, so basically the same thing but I understand (for what ever reason) you can't change the settings of the Std LCD component to 4x20.
List occurrences shows at least 100 various calls for the Std LCD component so is there any way to update an existing component with the alternate?
:?
Thanks guys,
J.

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: Updating to Alternate Component

Post by JonnyW »

Hi.

You can replace one component with another if you have used only calls that exist and are compatible in both.

Note that for Flowcode to be aware of a components available macros the component must be:
  • Inherited from the same base component
  • Be previously loaded onto the panel
Load the replacement onto the panel then delete it. This makes Flowcode aware of what macros it has.

Right click your component and select Replace...
000065_Flowcode1.png
(19.85 KiB) Downloaded 860 times
You should be able to replace with the new components.

Alternative
If for some reason Flowcode decides that the replacement will result in errors it won't let you make the replacement. If this is the case (and you are happy to fix the errors later) you can hack your (backed up) fcfx file.
Right click the component in its list to find its GUID (the identifier used to identify this component type):
000066_.png
(7.64 KiB) Downloaded 860 times
000067_Component details.png
(6.83 KiB) Downloaded 860 times
Open the FCFX file up and find the GUID you wish to replace, and change it to the GUID of the new component. Reload your project and the replacement should be made regardless of errors.
000068_Flowcode1.png
(6.26 KiB) Downloaded 860 times
Hope this helps,

Jonny

Post Reply