Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messagebox in timer
Message
From
19/05/2004 09:09:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
18/05/2004 22:07:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00905129
Message ID:
00905235
Views:
27
>i have a question. will timer continues to fire even if my user hasn't pressed "ok" in my messagebox?

I think it should NOT fire if you disable it on purpose. That is why I suggested disabling it. But I leave the testing for you.

If it is left enabled... I just tested, yes, it will continue to fire. You can check it on your own, with this sample program:
x = CreateObject("MyTimer")
MessageBox("Hello, Evelyn, click 'OK' to end the test.")

define class MyTimer as Timer
  Interval = 1000
  Procedure Timer
    ?? chr(7)
  Endproc
enddefine
The "beep" (chr(7)) will be heard once a second.

Tested with VFP 6.

I think that VFP can postpone running the Timer when VFP is very busy, for example, executing a long query.
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