OIC, I don't know exactly why it's doing that but try putting
keyboard('space')
in the cancel button and see what happens. I don't know what else that will effect but it just changes lastkey to something other that ESC.
Maybe somebody else knows a better way.
hth
>If user presses Cencel from the text box, it should not give any error message. But if user goes on to the any other control except cancel,it should display the error message.
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!