Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 Tip-o-the-day SYS(2335)
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
VFP6 Tip-o-the-day SYS(2335)
Divers
Thread ID:
00124399
Message ID:
00124399
Vues:
56
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.
Répondre
Fil
Voir

Click here to load this message in the networking platform