1. Sailaja Sumanam
  2. PowerBuilder
  3. Sunday, 31 March 2024 18:53 PM UTC

Hi,

When the PB application is closed, I want to control itt conditionally that when certain conditions are met, I donot want the applciation to close but instead trigger the timer event for certain period of time and then close. So I have written code in the closequery event of the application main window that, when the conditions are met, return a value of 1 and donot allow the PB app to close. Then trigger the timer event. 

 

Will it be possible that the timer event can be triggered in closequery event or not?

 

Thanks,

Sailaja.

John Fauss Accepted Answer Pending Moderation
  1. Monday, 1 April 2024 02:12 AM UTC
  2. PowerBuilder
  3. # 1

Hi, Sailaja - 

Have you considered using the PB Timing object? The Timing object can be used in any object and is not tied to or dependent on a window.

I am curious in regards to your need to delay the closing of the application. Can you please elaborate on the use case for this feature?

Depending on the length of the timed delay, I urge caution. An application may need to exit for reasons other than the user requesting to leave/exit the application. For example, the user is logging out of Windows without first exiting the app, or Windows has entered a maintenance interval and needs to restart.

Also, the user may be confused if the application does not exit as expected, then suddenly exits later when the timer pops/expires.

Best regards, John

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.