Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:44 AM UTC

Uniface 10 Enterprise Edition: Convert / compile error

Convert / compile error

Author: knut.dybendahl@gmail.com (Knut)

I have a component where virtually all triggers of an entity are commented out using a single comment (;) marker. We do this to simply block code from the model being inherited by the component. In 9.6 this works fine and as expected. In 10.02 - although the comment marker (;) is visible in the ProcScript (and in the XML when exported), Uniface seems to 'see' through the comment and still include the default proc defined in the entity. 9.6 code

<OCC> .... <DAT name="GENERAL">;</DAT> .... </OCC>

and this is the 10.02 converted code.

<OCC> <DAT name="UOCC_SCRIPT" xml:space='preserve'>#startdefine #startdefine #define $triggerAbbr=LPME ; #enddefine</DAT> </OCC>

In the LPME trigger in the model, we have code referencing component variables - thus we don't want that code in this compoent.. Knut

11 replies

Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:44 AM UTC

Convert / compile error

Author: knut.dybendahl@gmail.com (Knut)

I have a component where virtually all triggers of an entity are commented out using a single comment (;) marker. We do this to simply block code from the model being inherited by the component. In 9.6 this works fine and as expected. In 10.02 - although the comment marker (;) is visible in the ProcScript (and in the XML when exported), Uniface seems to 'see' through the comment and still include the default proc defined in the entity. 9.6 code

<OCC> .... <DAT name="GENERAL">;</DAT> .... </OCC>

and this is the 10.02 converted code.

<OCC> <DAT name="UOCC_SCRIPT" xml:space='preserve'>#startdefine #startdefine #define $triggerAbbr=LPME ; #enddefine</DAT> </OCC>

In the LPME trigger in the model, we have code referencing component variables - thus we don't want that code in this compoent.. Knut

I think it's fair to say that the organisations that'll come across this issue are long time Uniface customers. With that in mind, maybe the convert process should 'automatically' insert either a pragma something or a new precompiler directive (as pr Iain's suggestion (thumbs up - twice!!) in the process when it hits a single 'commented' out trigger. This way we get to retain our current functionality, the code should execute just as it does today in 9.6. Then, if/when we need to, we can remove the precompile / pragma statement and move forward with the new, improved way... Knut


Author: Knut (knut.dybendahl@gmail.com)