>>In the keypress of the form. The keypreview property is on because we want to trap certain keypresses, (such as SF5)
>>
>
>You might consider this in the form.Init()
>
>
ON KEY LABEL "{SHIFT+F5}" DO whatever
>
>>Where else other than a keypress event can you determine keypresses.
>
>You could (e.g.) also trap LASTKEY() in a loop to give the user an out in a potentially long running loop.
Sorry - that should be
ON KEY LABEL SHIFT+F5 DO whatever
Insanity: Doing the same thing over and over and expecting different results.