DDE TERMINATE statement
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
(Windows only)
Closes the specified dynamic data exchange (DDE) conversation.
This statement is supported only for backward compatibility. Use the Component Object Model (COM) instead.
Syntax
|
- ddeid
- An integer expression that equals the channel number of an open
conversation. It is the value returned by the
DDE INITIATEstatement that opened the conversation. - NO-ERROR
- The NO-ERROR option is used to prevent the statement from raising
ERRORand displaying error messages.Regardless of whether
NO-ERRORis used, the AVM posts the error to the DDE frameDDE-ERRORattribute.
Example
The following fragment shows a typical use of the DDE
TERMINATE statement. It assumes that the Microsoft Excel application is running,
and has created the default Excel worksheet, Sheet1. It then uses the DDE
INITIATE statement to open a conversation with Sheet1 as the topic, returning the
channel number of the conversation to the variable, Sheet1. After exchanging data with the
worksheet, the example closes the conversation with Sheet1 using the DDE
TERMINATE statement.
|
Notes
- Before closing a DDE conversation, remove all advise links in the
conversation using the
DDE ADVISEstatement. - Closing this conversation makes ddeid unavailable for further exchanges, but any other conversations open to the same server are still available.
- For more information on using the DDE protocol to exchange data with non-ABL applications, see OpenEdge Programming Interfaces.
See also
DDE ADVISE statement, DDE INITIATE statement, NO-ERROR option