Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messagebox in timer
Message
From
18/05/2004 20:43:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
18/05/2004 20:32:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00905129
Message ID:
00905137
Views:
17
>yes hilmar.
>
>Did you try to disable the Timer, at the beginning of its Timer() event?
>
>i'd like to continue notify my user of a new pdf file in the server then stop when they read the file. i actually have a way of knowing when they have read the file.
>
>i put a messagebox in timer but my problem is, if i do this, i will clog my user of messageboxes. i want to be able to find a way to close the messagebox before showing another messagebox.
>
>can i do this?

I don't know if I understand correctly: While the MessageBox() shows, the Timer continues executing every 20 minutes?

My idea to solve this is that in the Timer itself, in the Timer() event, you do something like this:
* Timer.Timer() Event
This.Enabled = .F.  && Disable Timer
MessageBox(...)     && Show message
This.Enabled = .T.  && Enable Timer again, after the user accepts
However, I don't know if I understood your problem correctly.

Greetings,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform