Tore, I tried that then realized that clear typeahead clears out the keyboard buffer. In other words it clears out what's ahead. I need to change what's been done.
>Clear Typeahead, as far I can remember.
>
>>The IE browser control is kinda funky to work with so you gotta get creative.
>>
>>I am trying to prevent the cursor from exiting an HTML Edit control with the keyboard. The only code that works reliably is:
>>
if inlist(lastkey(),5,4,19,24,13,9,15)
>> NODEFAULT
>>endif
>>
>>However, if the lastkey() was any of the above and I click on another object on the form the cursor stays in the HTML Editor .
>>
>>Is there command that will clear/change the value of last key besides one that would wind up in the HTML? I want to put it right under the NODEFAULT.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn