Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 Tip-o-the-day SYS(2335)
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
VFP6 Tip-o-the-day SYS(2335)
Miscellaneous
Thread ID:
00124399
Message ID:
00124399
Views:
55
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.
Reply
Map
View

Click here to load this message in the networking platform