>>>>>I coded...
>>>>>frmMyForm = CREATEOBJECT('Form')
>>>>>everytime I run it, it opens and then goes away.
>>>>>help?
>>>>
>>>>Form is here but non-visible and modeless. Do frmMyForm.visible=.t. at least.
>>>
>>>The FORM shows itself, but goes away like it needs a READ EVENTS?
>>>help
>>
>>So use READ EVENTS, if you don't have it yet.
>
>I has READ EVENTS. I am using code and calling the code as a function.
>
>The code builds the form and grid.
>Shoud I use a FORM file instead of code?
It looks that your form is hidden behind some other form. So use Formname.SHOW() to bring it up front. Also, some other think must be checked (e.g. it might be that some other active form has AlwaysOnTop=.t.). Basically if you are not sure in your code, use standard VFP way of building forms (Form Designer).
Edward Pikman
Independent Consultant