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.
Thanks and kind regards,
Marc
>>The code below works. If the sql returns more than 1 record an ad hoc form (frmPopup) is opened containing a grid and shown modally. The user then selects a line and the forms closes gracefully.
>>
>>The form does not close when lPopupActiveParcels() is called from the beforerowcolumnchange event of a grid.
>>
>>Note that lPopup is a method of oDE.
>>
>>Can anybody shed some light on this?
>
>It may be firing twice, fouling things up. Note that BRCC is the *very* last thing to fire when exiting a grid. Put some WAIT WINDs and you'll see this. Why not use ARCC instead, or even a cell Click if there's any problem with ARCC?
If things have the tendency to go your way, do not worry. It won't last. Jules Renard.