A script-enabled browser is required for this page to function properly.

DDE.EXECUTE built-in procedure

This procedure executes a command string that is acceptable in the receiving DDE server application.

Syntax

DDE.EXECUTE (convid, command, timeout)

Parameter

Type

Description

convid
PLS_INTEGER

DDE conversation ID

command
VARCHAR2

Command string for the server to execute

timeout
PLS_INTEGER

Timeout duration in milliseconds

Usage notes

The value of Command depends on what values are supported by the server application.

Timeout specifies the maximum length of time, in milliseconds, that this routine waits for a response from the DDE server application. If the user specifies an invalid number, such as negative number, then the default value of 1000 ms is used. The duration of the timeout depends on machine configuration and the DDE server application.

Example


DECLARE
  ConvID PLS_INTEGER;
BEGIN
   /* Open a DDE conversation with Microsoft Excel for Windows */
      ConvID := DDE.INITIATE('EXCEL', 'C:\abc.xls');
   /* Recalculate the Excel spreadsheet.*/
      DDE.EXECUTE(ConvID, '[calculate.now()]', 1000);
END;

See also

About the DDE built-in package

DDE built-in package

DDE built-in exceptions