Oscar,
Try:
thisform.show(1)
in the form class' init() (rather than this.visible = .t.)
>I created a form class with windowtype = 1 (modal).
>
>I´m issuing thisform.oForm = CreateObject(“MyFormClass”, Param1, Param2) in order to launch it.
>
>The init of the form class contains the code to make it visible: this.visible = .t.
>
>However, the statements after the CreateObject are executed immediately (not the usual modal form behavior).
>
>How can I obtain the behavior expected of not to execute any next line(s) until the modal form has been released?
>
>Thanks in advance
>
>Oscar Corte
Steve Gibson