foxpro 9 formset issue
Posted on 2013-06-28
I am creating a formset in foxpro 9.0. I have 2 issues. 1: now matter where or how often I insert thisformset.form2.visible = .F., including the properties of the form. It is always visible when the main form loads. If I insert code after that, visible = .F. works. I also set enabled = .F., This seems to work. also, since this is the last of 2 forms, the focus always is on form2 when it loads, even though it is not enabled.
2. when I make form2 visible, enabled and setfocus() to a textbox. The code following this in a click event still processes. I am trying to call form2 that produces a data item that will be placed in the value of form1.text1. the program sends focus, visibility to form2 but doesn't wait for focus to return. therefore the value returned never makes it to form1.text1