Sets the DDE timeout value.
DDETimeout ( value )
(i) value: DDE timeout time.
(i) previous timeout value.
Sets the timeout time for subsequent DDE functions to specified value in milliseconds (1/1000 second). Default is 3000 milliseconds (3 seconds). If the time elapses with no response, the WIL Interpreter will return an error. The value set with DDETimeout stays in effect until changed by another DDETimeout statement or until the WIL program ends, whichever comes first.
DDETimeout(5000) ;Set Timeout to 5 secs Run("report.exe", "sales.dat") ;Run Report channel = DDEInitiate("report", "YTD") ;Initialize DDE If channel != 0 ;If DDE OK ;Do DDE Request result = DDERequest(channel, 'SortByCity') DDETerminate(channel) ;Close DDE WinClose("Reports") ;Close Report If result == @FALSE Message("DDE Execute", "Failed") Else Message("DDE Request", "Database sorted") Exit EndIf Else Message("DDE operation unsuccessful", "Check your syntax") EndIf