>if type('_screen.ActiveForm.Name') = 'C' and _screen.ActiveForm.Caption = 'myFormwithTheMethod' > _screen.ActiveForm.myMethod() >endifThank you for the help. I am a little unclear just how to use your code.
Set Skip Of Bar 1 Of Edit .t. Set Skip Of Bar 2 Of Edit .t. Set Skip Of Bar 3 Of Edit .t. SET SKIP OF BAR 1 OF Tools .t. SET SKIP OF BAR 2 OF Tools .t. DO FORM yaddayadda && a new modal form IF table.logicalfield Set Skip Of Bar 1 Of Edit .f. Set Skip Of Bar 2 Of Edit .f. Set Skip Of Bar 3 Of Edit .f. SET SKIP OF BAR 1 OF Tools .f. SET SKIP OF BAR 2 OF Tools .f. *!* I want to execute the following form methods in the modeless form that is running *!*thisform.ImgABC.Visible = .t. *!*thisform.ImgXYZ.Visible = .t. ENDIFI can execute the code from a form control, but want to also execute it from a menu prompt.