Greetings!
I have a combo box on a pageframe's page that is meant to cause an edit box on another page to get focus, depending on which selection is chosen. (The edit box is used to provide comments about the selection.) In the valid event, I have code such as this:
IF lcValue $ 'PC,NC'
THIS.PARENT.ACTIVEPAGE = 6
THIS.PARENT.PAGE6.edtComments.SETFOCUS()
ENDIF
However, when page 6 is made active, the combo box on the previous page is still visible, and is superimposed on the edit box. If I manually click on the page's tab, the combo box disappears.
I got around this by adding
THIS.VISIBLE=.F. to the above code, before setting the ACTIVEPAGE property. This works, except, of course, I needed to add
THIS.cmbStatus.VISIBLE=.T. to the ACTIVATE event for the page containing the combo box.
My question is, what am I missing? Why is the combo box remaining visible when I programmatically switch pages?
Thanks!
Michael Reynolds