Set WindowType property of the form to 1 - Modal.
>Hi Sergey,
>
>Thanks. I know how to make a form modal in other databases but not VFP. How do make the form modal in Visual FoxPro.
>
>Thanks again
>Jim
>
>
>>>Hello Group,
>>>
>>>I have created a log on or log in form that takes parameters from the calling program and makes the connection with the remote SQLServer. How do I get the value of the connection handle from the form back into a variable in the program. I am saving the value of the connection handle in thisfrom.txtConnectionHandle.value.
>>>
>>>Thanks
>>>Jim
>>
>>Assuming that form is modal and SCX based.
DO FORM myform WITH .... TO lnHadle
>>* In the Unload of the form
>>Return thisfrom.txtConnectionHandle.value
--sb--