Nancy,
I had thought of that, but I already had a line in the when so I put it there.
Thanks again.
>>Nancy,
>>
>>Thanks. I got it working by putting this code in the keypress method:
>>
>>LPARAMETERS nKeyCode, nShiftAltCtrl
>>
>>do case
>> case nKeyCode = 9 or nKeyCode = 13 or nKeyCode = -3
>> * 9 = Tab 13 = Enter -3 = F4
>>
>> otherwise
>> nodefault
>>endcase
>>
>>And putting KEYBOARD '{F4}' in the when method.
>
>Cool. Though, if you want my opinion, in the GotFocus is more logical. Not really critical, but would probably suprise the heck out of someone to find it there. :)
Mark Johns