OLERequestPendingTimeout, OLEServerBusyRaiseError, OLEServerBusyTimeout
Microsoft certainly wasn't miserly with the letters when naming these jawbreakers! They all have to do with how you manage delays and timeouts within your OLE Server application.
Usage |
nPendingTimeout = oApp.OLERequestPendingTimeout oApp.OLERequestPendingTimeout = nPendingTimeout nBusyTimeout = oApp.OLEServerBusyTimeout oApp.OLEServerBusyTimeout = nBusyTimeout lRaiseError = oApp.OLEServerBusyRaiseError oApp.OLEServerBusyRaiseError = lRaiseError |
Parameter |
Value |
Meaning |
nPendingTimeout |
Positive number |
The amount of time in milliseconds to wait before displaying a message that the application is busy. |
Zero or negative |
No message is displayed. |
|
nBusyTimeout |
Numeric |
The amount of time to wait (in milliseconds) before raising an error if OLEServerBusyRaiseError is .T. |
Zero or negative |
No error is raised. |
|
lRaiseError |
.T. |
Create an error if an OLE request waits longer than the OLEServerBusyTimeout specified delay. |
.F. |
Don't error if the request is not answered in time. Without an error message, your application appears to hang. |
Example |
_VFP.OLERequestPendingTimeout = 500 && half a second _VFP.OLEServerBusyTimeout = 5000 && five seconds _VFP.OLEServerBusyRaiseError = .T. && let operator know |