Hi,
>Can i get a return value from a form class which is modal with createobject like
>
>
>M.o1 = createobject('Myform')
>
>m.o1.windowtype = 1 && modal
The simplest way is to hide rather than release the modal form. You can put:
THIS.HIDE
NODEFAULT
in the QueryUnload of the modal form. You can then access the properties of the modal form when control returns to the creation code. Use m.o1.Release when you're done.
HTH,
Viv