I have a form with treeview and grid on it. It’s name “Detail_form”. When Detail_form is activating and grid has focus I select a Item from menu. That item calls a “ShowSalDecForm()” procedure .
*********************************
Procedure ShowSalDecForm()
CloseAllForms()
Do form forms\saldec
*Saldec form is modal form
Endpro
*********************************
Procedure CloseAllForms
Local loForm
FOR EACH loForm IN application.Forms
IF TYPE("loForm" == "O" AND loForm.Baseclass == "Form"
IF !loForm.QueryUnload()
RETURN .F.
ENDIF
loForm.Release()
ENDIF
ENDFOR
Endpro
************************
My problem that Detail form can not release before “Saldec form” shows. when Detail_form’s gird has focus. “Saldec” form display but “detail_form” stay behid “Saldec” form. If I put code of ShowSalDecForm() procedure into click method of a button in toolbar that problem doesn’t happen
I think it’s internal error of VFP but I can not solve it. Anyone has idea ? I’m using VFP60, SP5
Thank you very much.
Viet
*********************************
Procedure ShowSalDecForm()
CloseAllForms()
Do form forms\saldec
*Saldec form is modal form
Endpro
*********************************
Procedure CloseAllForms
Local loForm
FOR EACH loForm IN application.Forms
IF TYPE("loForm" == "O" AND loForm.Baseclass == "Form"
IF !loForm.QueryUnload()
RETURN .F.
ENDIF
loForm.Release()
ENDIF
ENDFOR
Endpro
************************
My problem that Detail form can not release before “Saldec form” shows. when Detail_form’s gird has focus. “Saldec” form display but “detail_form” stay behid “Saldec” form. If I put code of ShowSalDecForm() procedure into click method of a button in toolbar that problem doesn’t happen
I think it’s internal error of VFP but I can not solve it. Anyone has idea ? I’m using VFP60, SP5
Thank you very much.
Viet