>>Hi Bruce,
>>
>>BRCC, ARCC, took some time to figure out what you meant, but I have to admit that they are verrrrry use full acronyms. :). BRCC is the closest that I could imagine to a grid level kind of valid method. If the user presses escape in the modal form, the idea is that the cell retains the focus. Can you suggest another way of doing this?
>>
>>BTW, you may be right about firing twice ..., from what I see in the event report.
>
>You can use a property, set in the grid When to .F., Valid to .T. (for example), and only fire the BRCC code based on that property.
>
>Still unsure if what you're trying to do will work, but this will prevent the firing twice.
Well... who said the fox is not full of surprises. Small wonder that they can make those examinations so difficult :). Inserting a Release Window before the Release Thisform statement in the Keypress() method of the modal form helps.
Do not ask why, it's obvious I would not know :).
if inlist(nKeycode,13,27)
release window
release thisform
nodefault
return
endif
If things have the tendency to go your way, do not worry. It won't last. Jules Renard.