>Hi all,
>I've a form which has its windowtype property set to 0-Modeless in design time.
>However, I would like to have the ability to change it to run as modal during runtime.
>I've tried "do form form_name name oform" and used oform.windowtype=1 to change the property during run time. Got a message saying this property is readonly during runtime.
>Anyway to work around this without having to create a duplicate of the whole thing with the windowtype changed?
>Thanks in advance.
>
>Yau
hi Yau,
you can set the WindowType in the init() of the called form. You'll need to pass a parameter to the form though
do form form_name with 1
lparameters wt
if( !empty(m.wt) )
this.WindowType = m.wt
endif
You can put the init() in your form's baseclass
Gregory