820 views
in Embedded Wizard Studio by
How do you connect an Observers Outlet with a Property in Chora?
E.g., I tried:
Custom11_Observer.Outlet = Application::Device.PROFILE_Custom_11[(int32)Application::Device.CIRAS_ActiveProfile];

1 Answer

0 votes
by

Hello Mike,

the Outlet expects a reference to the affected property. Assuming you have an autoobject Application::Device containing a property named Setting, following would be the code to establish the connection (Note the usage of the ^ operator to get the reference to the property)

ObserverObject.Outlet = ^Application::Device.Setting;

See also:

Property reference

Does it help you?

Best regards

Paul Banach

by

I had tried the carrot too: 

Custom11_Observer.Outlet = ^Application::Device.PROFILE_Custom_11[(int32)Application::Device.CIRAS_ActiveProfile];

But that generates the error:
[2.11.2020  9:19:13] Error Application::Setup_Custom.Init (2:28) : Expected property name right to the reference operator '^'.


 

by
Hello Mike,

as the error message indicates, the expression right to the reference operator has to be a property. So far I understand your code, you are trying to create a reference to an array element.

Best regards

Paul Banach

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...