loForm = Newobject ('PEME_FRMBROWSER', 'PEME_mxBrowser.VCX') loForm.WriteHTML (lcResult) loForm.Show() Return lcResultThe form that is created here is not modal, and I want it to hang around once it is created by the code above. Of course, loForm goes out of scope and POOF!