412 views
in GUI Development by

Hi Team,

I have defined a property and it's associated onset property with a datatype of int32 within the device class. Default value of this property is given as 1. Implementation is shown below.

Consider that the GUI is flashed to the device and If I enter a value other than 1 to this property then until line 22 of onset method including native will be executed. Isn't it?

What happens if I enter 1 to this property? then also native will be called? Please clarify these scenarios.

Regards,

Sazna.

1 Answer

0 votes
by
Hello Sazna,

the if-condition in line 2 causes the method to exit when the assigned value is the same as already stored in the property. Consequently, the execution ends in line 3.

I hope it helps you further.

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

...