Folks,
VFP6 has a new function named SYS(2335) whihc can be used to control modal states in out-of-process COM objects. An out-of-process COM object written in VFP6 can have a user interface component. The problem lies in the situation where the COM object has put up a modal dialog. This would halt the com object from doing anything else until the user dispatched the dialog.
SYS(2335,nValue) can help in preventing this situation. If nValue is 0 then any modal state will generate an error 2031 User-interface operation not allowed at this time.
If nValue is 1 then modal states are allowed.
This function is especially important in remote com servers wehre the user may not be at the machine that the server is running on. This would cause the server to "hang" waiting for someone to dispatch the modal dialog.