AdvancedHMI Software

General Category => Support Questions => Topic started by: DavidSr on July 07, 2020, 07:09:25 PM

Title: Replace all ComComponents
Post by: DavidSr 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?
Title: Re: Replace all ComComponents
Post by: Gene T. 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.
Title: Re: Replace all ComComponents
Post by: Godra 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.

Title: Re: Replace all ComComponents
Post by: DavidSr 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.
Title: Re: Replace all ComComponents
Post by: Godra 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.