Message timeout

Command group Flag affected Reversible Execute on client Platform(s)
Exchanging data NO NO NO Windows


Message timeout {interval (seconds)}


This command specifies the time Omnis has to wait for DDE responses to messages sent to other applications. There is a default value of 30 seconds when Omnis is started.

The following general purpose method sets up a DDE channel by increasing the message timeout by 5 seconds until successful. You pass three parameters to the method, that is, the initial timeout, the channel number and the program 'name|document'.


; open dde channel
; parameter pNum is short int
; parameter pChannel is short int
; parameter pProgDoc is character
Set DDE channel number {pChannel}
  Message timeout {pNum}
  Open DDE channel {[pProgDoc]}
  If flag false
    Yes/No message {Give up 'Open DDE channel'?}
    If flag true
      Close DDE channel
    End If
  End If
  Calculate pNum as pNum+5
Until flag true