DDE ADVISE statement
- Last Updated: February 11, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
(Windows only)
Instructs the dynamic data exchange (DDE) server associated with a conversation to either create or remove an advise link to the specified data item.
This statement is supported only for backward compatibility. Use the Component Object Model (COM) instead.
Syntax
|
- ddeid
- An integer expression equal to the channel number of the conversation
opened for the specified data item. It is the value returned by the
DDE INITIATEstatement that opened the conversation. - START
- Instructs the server to create a link to a data item, and notify the ABL client when the specified data item changes value.
- STOP
- Instructs the server to remove the link to the specified data item, and stop monitoring its value.
- ITEM name
- Specifies the name of the server data item to which the link is
created or removed. The data item name is a character
expression that identifies the data item according to the conventions of the server
application (for example, the row and column coordinates of a worksheet cell, such as
R2C1 in Microsoft Excel). After creating a link, when the value of the data item
specified by name changes, the AVM triggers a
DDE-NOTIFYevent for the frame that owns the conversation, allowing the client to retrieve the new value. - TIME seconds
- Specifies the maximum number of seconds that the ABL client waits for
the
DDE ADVISEstatement 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 ADVISE to
set up a procedure to capture a rate-of-change value as it changes in a dynamic model run in
a Microsoft Excel worksheet. The example assumes that the Microsoft Excel application is
running, and has opened the default Excel worksheet, Sheet1, which runs the model.
After the conversation is opened, the DDE ADVISE statement
links to the worksheet cell that maintains the latest rate-of-change value (second column of
the fourth row, or R4C2). Every time this cell changes value, the AVM posts a
DDE-NOTIFY event to the frame DDEframe, where the value is retrieved
using the DDE GET statement, and stored as a decimal in the ChangeRate
variable. Meanwhile, if the REPEAT block detects a ChangeRate value greater
than 7.5%, the link to cell R4C2 is closed and the procedure continues.
|
Notes
- After a
DDE-NOTIFYevent is triggered for the conversation, the client application must use theDDE GETstatement in a trigger block for the event to retrieve the latest value for name. - For more information on using the DDE protocol to exchange data with non-ABL applications, see OpenEdge Programming Interfaces.