>>I've created a modal form class. When I do the following:
>>
>>loForm = CreateObject("cModalForm")
>>loForm.Visible = .T.
>>loForm = NULL
>>
>>The form open and close immediatly. What am I missing?
>after the visible issue a read events and then clear events in the destroy of the form,
>hopefully that will do it for you.
I don't think this is a good strategy. If there is already a READ EVENTS in effect,
the CLEAR EVENTS will end the program when this form exits. I think it's the
ThisForm.Show(1) which Edward suggested.