A dockable form cannot be modal. It's documented in
Dockable Property help topic.
>
>Do Form "form_name" TO "var_name"
>
>and the form is modal and dockable=2, the program is not stopping at the form and is comming back the calling program raising an error:
>
>"the to clause can only be used with modal forms or formset"
>
>is this a bug or is a by desing error??
>
--sb--