DDE EXECUTE statement
- Last Updated: February 11, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
(Windows only)
Instructs a dynamic data exchange (DDE) server application to execute one or more application commands.
This statement is supported only for backward compatibility. Use the Component Object Model (COM) instead.
Note: Does not apply to SpeedScript programming.
Syntax
|
- ddeid
- An integer expression equal to the channel number of a conversation
opened to execute the specified command string. It is the value returned by the
DDE INITIATEstatement that opened the conversation. You can usually execute commands using a conversation opened for the System topic of the server application. - COMMAND string
- Specifies the command or commands for the server to execute, where string is a character expression containing commands that are defined by the server application (for example, the [select(...)] command in Microsoft Excel).
- TIME seconds
- Specifies the maximum number of seconds that the ABL client waits for
the
DDE EXECUTEstatement to complete, where seconds is an integer expression. If you do not specify theTIMEoption or specify a value of 0, the AVM waits indefinitely for the statement to complete. - 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 how to use the DDE EXECUTE
statement. The procedure executes Microsoft Excel internally and opens a conversation for
the Excel System topic. The System topic lets you execute Excel functions. This example uses
the DDE EXECUTE statement to create a new Excel worksheet using the Excel
new function:
|
Notes
- For more information on commands available in your server application, see the documentation for that application.
- For more information on using the DDE protocol to exchange data with non-ABL applications, see OpenEdge Programming Interfaces.