>1. problem when focus is in the grid, and the client clicks to another control outside the grid. the grid1.text1.valid is executed, and if in error, a messagebox pops up. but focus does not stay in the grid, even if its' valid return .f.. what is a fix?
This is an acknowledged problem with VFP. I don't know of a fix except possibly to move your code to the grid's valid instead of the spcific control. If you need the code to run before the user exits the row also, put the code in the grid's BeforeRowColChange event. Somebody else might know of a better workaround, but I haven't heard of any.
>2. have containers on a page. when the client clicks the EDIT button all the page tabs are disabled execpt the active page. the active page stays enabled for readability. if the client clicks on the activepage, pagetab, (just the pagetab, not the page. i really have no page for them to click on, my container is as large ast the page) again a messagebox popups if the field is in error. but again, focus does not stay with the erroneous control. focus is set to the pagetab. have any ideas?
I'm not sure I understand. What control has focus when the user clicks the pagetab? I have never experienced a problem with pagetabs disrespecting a control's valid.
Erik Moore
Clientelligence