It works, thank you, but how can explain it is the very forst time it happens ? It' s now quite 15 years since I started developing in VFP ....
>>i made a very simple application based on just one form. I set it as modal but when I run the exe files it flashs...and flies away.
>>How come ?
>>I tried to set it as top level form , aways on top etc but without success
>>
>>thx
>>Alessio
>
>Alessio,
>Top level forms cannotr be modal (and for a single toplevel form you don't need it to be modal). However you can provide modality via read events. ie:
>
>*main.prg
>Local oForm
>Do Form myForm Name oForm
>oForm.Release
>Release oForm
>* code if any
>
>*myForm.init
>this.Show
>Read events
>
>*myForm some button click
>thisform.hide()
>clear events
>
Cetin