No, nothing problem in your code. But VFP use so-called soft-timer, instead hard-timer. You can use CPPTimer - FILE#
9315MartinJ
>Hi All,
>
>I have a timer and a command button on the main screen. The clicking of the
>button displays a popup menu. The problem is that when the popup is displayed the timer stops. The moment the mouse is moved or when i use the up / down arrow keys in the popup then the timer continues. I have coded the following statement :
>
>Activate Screen
>
>Define Popup Shortcut Shortcut From lnRow, lnCol Relative
>Define Bar 1 Of Shortcut Prompt "\
>Define Bar 2 Of Shortcut Prompt "\>Define Bar 3 Of Shortcut Prompt "\>
>On Selection Bar 1 Of Shortcut objMe.onSelect(1)
>On Selection Bar 2 Of Shortcut objMe.onSelect(2)
>On Selection Bar 3 Of Shortcut objMe.onSelect(3)
>
>Activate Popup Shortcut Bar 1
>Activate Screen
>
>Release Popup Shortcut
>Activate Screen
>
>Is there any problem with this code?
>
>Thanks in advance!
>JD.