Author Topic: Replace all ComComponents  (Read 1595 times)

DavidSr

  • Full Member
  • ***
  • Posts: 170
    • View Profile
Replace all ComComponents
« on: July 07, 2020, 07:09:25 PM »
Is there a way to change all the comcompontes for all items from serial to ethernet in a project  without doing one at a time?
David

Gene T.

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Replace all ComComponents
« Reply #1 on: July 07, 2020, 07:41:01 PM »
I believe if you select all of the items you can set the comcomponent for all of the items that are selected.

Godra

  • Hero Member
  • *****
  • Posts: 1446
    • View Profile
Re: Replace all ComComponents
« Reply #2 on: July 07, 2020, 07:44:40 PM »
That should be correct for as long as all the selected items are actually AHMI controls with ComComponent property.


DavidSr

  • Full Member
  • ***
  • Posts: 170
    • View Profile
Re: Replace all ComComponents
« Reply #3 on: July 07, 2020, 09:32:36 PM »
Thanks Gentleman,... I actually did that shortly after I posted... Sorry to bother you. Works well except when adding some items that are of different type, the option to select the comcomponet is removed from the properties tab. Combining Simple LEDs with other controls for example.
David

Godra

  • Hero Member
  • *****
  • Posts: 1446
    • View Profile
Re: Replace all ComComponents
« Reply #4 on: July 07, 2020, 11:50:39 PM »
If you do have any AHMI controls which still have CommComponent instead of ComComponent then just edit them and correct the property name.

If the designer does show errors after that, which it might for existing controls on the form, then just correct the designer as well.