(Windows only)
Sends a new value to a dynamic data exchange (DDE) server data item associated with the specified DDE conversation.
This statement is supported only for backward compatibility. Use the Component Object Model (COM) instead.
Regardless of whether NO-ERROR is used, the AVM posts the error to the DDE frame DDE-ERROR attribute.
The following fragment shows a typical use of the DDE SEND 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. This allows the AVM to exchange data with the cells of the worksheet. In this example, the fragment assigns column headings to the top row of the first three columns in the worksheet using the DDE SEND statement.
DEFINE VARIABLE Sheet1 AS INTEGER NO-UNDO. /* DDE-ID to worksheet topic */ DEFINE VARIABLE DDEframe AS HANDLE NO-UNDO. /* DDE frame handle */ CREATE FRAME DDEframe. /* Create DDE frame */ . . . /* Open a DDE conversation with Sheet1 and assign column headings. */ DDE INITIATE Sheet1 FRAME DDEframe APPLICATION "Excel" TOPIC "Sheet1". DDE SEND Sheet1 SOURCE "Name" ITEM "R1C1". DDE SEND Sheet1 SOURCE "YTD Sales" ITEM "R1C2". DDE SEND Sheet1 SOURCE "State" ITEM "R1C3". . . . |