o = CusTest() o.Init() o.Destroy() o = .F. FUNCTION MessageBox LPARAMETERS cMessage, nButton, cCaption TLOCAL nButtons as System::windows::Forms::MessageBoxButtons nButtons = 1 System::Windows::Forms::MESSAGEBOX::Show(cMessage as System::String,cCaption as System::String,nButtons) FUNCTION MessageBox LPARAMETERS cMessage as System::String, nButtons as Integer =MESSAGEBOX(cMessage,"",nButtons) DEFINE CLASS cusTest cInitMessage = "Test Init" cDestroyMessage = "Test Destroy" FUNCTION Init() MESSAGEBOX(This.cInitMessage, 64 + 4, "Test") ENDFUNC FUNCTION Destroy() MESSAGEBOX(This.cDestroyMessage, 64, "Test") ENDFUNC ENDDEFINE