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

Uniface Development: UTIMER

UTIMER

Author: roger.wallin@abilita.fi (rogerw)

Hi,

Uniface 9.3. I'm curious, why doesn't the following asynchronous-trigger code exit a modal form 

if($msgid = "AUIT0020") ;MessageId
        exit(0)
endif

The code is reaching the exit(0) statement. The UTIMER is used and started fex. in the INIT-operation.  "Exit(0)" works fine in a button. In Uniface7 I have used a C-timer and there has been no problem with this code.
Keeping "Exit(0)" in the quit-trigger and using macro "^quit" or making the forms non-modal will solve the problem. Is there a way to quit without going through the quit-trigger using a modal form?

Regards RogerW.

 

13 replies

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

UTIMER

Author: roger.wallin@abilita.fi (rogerw)

Hi,

Uniface 9.3. I'm curious, why doesn't the following asynchronous-trigger code exit a modal form 

if($msgid = "AUIT0020") ;MessageId
        exit(0)
endif

The code is reaching the exit(0) statement. The UTIMER is used and started fex. in the INIT-operation.  "Exit(0)" works fine in a button. In Uniface7 I have used a C-timer and there has been no problem with this code.
Keeping "Exit(0)" in the quit-trigger and using macro "^quit" or making the forms non-modal will solve the problem. Is there a way to quit without going through the quit-trigger using a modal form?

Regards RogerW.

 

I tested the SHOW command, but with the same negative result as sochaz. In my case I don't want the users to use the quit-button, but of course I can prohibit this by some kind of component-variable that makes quit-trigger execute only if the macro "^quit" is executed from the asynchronous interrupt trigger. 

Regards RogerW.


Author: rogerw (roger.wallin@abilita.fi)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:17 AM UTC

UTIMER

Author: roger.wallin@abilita.fi (rogerw)

Hi,

Uniface 9.3. I'm curious, why doesn't the following asynchronous-trigger code exit a modal form 

if($msgid = "AUIT0020") ;MessageId
        exit(0)
endif

The code is reaching the exit(0) statement. The UTIMER is used and started fex. in the INIT-operation.  "Exit(0)" works fine in a button. In Uniface7 I have used a C-timer and there has been no problem with this code.
Keeping "Exit(0)" in the quit-trigger and using macro "^quit" or making the forms non-modal will solve the problem. Is there a way to quit without going through the quit-trigger using a modal form?

Regards RogerW.

 

Hi Uli,

no, this does not help at all. In fact, our form is visible all the time (there are data and log on the form and user can start/stop the timer, change parameters etc.). If the timer is running, there is a counter and if it reaches 0, the form is exited.

Nothing helps, we did not change anything on that form for years, in U8.4 it workes fine, after migration to U9.3, exit just does not exits the form. That's all. Definitely a bug in Uniface9 (or changed behaviour, since, according to documentation, exit shout exit the current component immediately). We are forced to use macro quit instead of exit, but this is just a stupid workaround (we do not want to activate quit trigger, we just need to exit the form, unfortunately it is impossible, since exit does not work here :-/).

Kind regards,
Zdenek Socha


Author: sochaz (zdenek.socha@fullsys.cz)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:17 AM UTC

UTIMER

Author: roger.wallin@abilita.fi (rogerw)

Hi,

Uniface 9.3. I'm curious, why doesn't the following asynchronous-trigger code exit a modal form 

if($msgid = "AUIT0020") ;MessageId
        exit(0)
endif

The code is reaching the exit(0) statement. The UTIMER is used and started fex. in the INIT-operation.  "Exit(0)" works fine in a button. In Uniface7 I have used a C-timer and there has been no problem with this code.
Keeping "Exit(0)" in the quit-trigger and using macro "^quit" or making the forms non-modal will solve the problem. Is there a way to quit without going through the quit-trigger using a modal form?

Regards RogerW.

 

Hi,

perhaps it is enough to make the component visible; so a:

 "SHOW"  in front of the
"EXIT" may help.

Success, Uli


Author: ulrich-merkel (ulrichmerkel@web.de)