I completely forgot about _INCSEEK. That did the trick.
Thanks!
>Hmmmm...
>Maybe in your case you must check _INCSEEK system variable value..
>In any case dodefault() in Keypress was wrong <s>
>
>Denis
>
>>Still it only works if I wait 3 seconds between keys pressed...
>>
>>
>>>Hi Tracy,
>>>I test it in VFP8 (SP1)
>>>
>>>
>>> Procedure lstletter.KeyPress
>>> Lparameters nKeyCode, nShiftAltCtrl
>>>
>>> If Lastkey() = 13 .Or. Lastkey() = -9
>>> nKeyCode = 13
>>> nShiftAltCtrl = 0
>>> Endif
>>>
>>> If nKeyCode = 13 .Or. nKeyCode = -9
>>> Nodefault
>>> Clear Typeahead
>>> Thisform.cmdok.Click
>>>*!* Remove dodefault() from your keypress event code
>>>*!* Else
>>>*!* DoDefault()
>>> Endif
>>> Endproc
>>>
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"