Syntax |
DDETimeout milliseconds |
Description |
Sets the number of milliseconds that must elapse before any DDE command times out. |
Comments |
The milliseconds parameter is a Long and must be within the following range: 0 <= milliseconds <= 2,147,483,647 The default is 10,000 (10 seconds). |
Example |
This example sets and retrieves a cell in an Excel spreadsheet. The timeout has been set to wait 2 seconds for Excel to respond before timing out. Sub Main() Dim cmd,q,ch%
id =
Shell("c:\excel5\excel.exe",3) 'Start Excel.
On Error Resume Next
DDEPoke
ch%,"R1C1","$1000.00" 'Send value to cell.
DDETerminate ch% |
See Also |
DDEExecute (statement); DDEInitiate (function); DDEPoke (statement); DDERequest, DDERequest$ (functions); DDESend (function); DDETerminate (statement); DDETerminateAll (statement). |
D |