Activity_Pause and httputils

MarkP37

New Member
Licensed User
Longtime User
Hello, Hope someone an give some advice.

I use Activity_Pause and Activity_Resume to save and retrieve screen setting.

In a button click event I disable various buttons on the screen, then call httputils to retrieve some info, then enable the buttons after the http call is finished and continue processing.

Note: Different buttons may disabled and enabled depending on the user and where the program is logically.

This works fine until the Activity_Pause is called before the http call is finished.

When the program Resumes, the buttons are disabled.

Is there a way to delay the Activity_Pause until the http call is completed.

How would you handle this problem.

Mark.
 
You cannot prevent your activity from being paused.

This purpose of this code is to handle the case where the Activity was paused while the job has completed:
Code: Copy
Sub Activity_Resume
   'Check whether a job has finished while the activity was paused.
   If HttpUtils.Complete = True Then JobDone(HttpUtils.Job)
End Sub
 
Upvote 0
Back
Top