>The NODEFAULT seems to work. Except for now the other page ADD NEW doesn't work. That was where my original SETFOCUS problem was.
>
>ADDNEW METHOD
>
>THISFORM.AddSetFocus = .T.
>THISFORM.adding = .T.
>THISFORM.PageFrame1.Page1.SETFOCUS()
>
>
>PAGE1.SETFOCUS METHOD
>
>IF THISFORM.AddSetFocus
> THISFORM.AddSetFocus = .F.
> THISFORM.PageFrame1.Page1.txtVendor.SETFOCUS()
>ENDIF
>
>
>This worked for the other page, but the Page1 it did not. Adding the NODEFAULT after the txtVendor.SETFOCUS() works when you are on page1, but not the original page. When you are at the original page and press the ADD NEW button, the WHEN Method for TxtVendor (on the other page) fires endlessly. (It is just a Wait Window to tell me the When is firing) I have to Ctrl-Alt-Delete.
>
>Any suggestions?
Tim,
This is a when returning .f. on pageframe.pages(1).anyfield ? If so it's a bug don't try to fix via nodefault. Try to move when code to somewhere else (ie: gotfocus).
Cetin