by Ondřej Kovařík » Fri 09. Aug 2024 7:47:02
Hello,
thank you for the additional information.
In the PROMOTIC development environment we display the macro expression evaluation preview, which is supposed to make the application development easier for the designers, but it is not related to the final macro expression evaluation at runtime. Some macro expressions are not evaluated in the development environment or are evaluated only in a limited way, e.g. the $.expr() macro expression is evaluated only for some properties of the objects used in the expression.
The important thing is that all macro expressions are evaluated correctly at runtime.
In version 9.0.29, I added support for the "Unit" property of the "PmVar" object, so that even the evaluation of the $.expr("pDE.Var.Unit") macro expression will be displayed correctly in the next version of the development environment.