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

DDE.APP_BEGIN built-in function

This function begins a conversation with a DDE server application program.

Syntax

DDE.APP_BEGIN (command, mode)

Parameter

Type

Description

command
VARCHAR2

Command line for executing a program.

mode
PLS_INTEGER

Application window starting mode.

Returns

PLS_INTEGER

Usage notes

In the Command string, the DDE server application program name can include a path. If the DDE server application name does not include a path, then the following directories are searched:

The DDE server application program name may be followed by arguments, which should be separated from the application program name with a space.

Start the DDE server application in either normal, minimized, or maximized size with the mode parameter. The application mode constants for DDE.APP_BEGIN are:

Mode

Description

DDE.APP_MODE_NORMAL

Start application window in normal size.

DDE.APP_MODE_MINIMIZED

Start application window in minimized size.

DDE.APP_MODE_MAXIMIZED

Start application window in maximized size.

This function returns an application identifier that is a PLS_INTEGER. The application identifier is used in all subsequent calls to DDE.APP_END and DDE.APP_FOCUS for that application window.

Example


DECLARE
  AppID PLS_INTEGER;
BEGIN
  /* Start Microsoft Excel with spreadsheet emp.xls loaded. */
     AppID := DDE.App_Begin('C:\excel\excel.exe C:\emp.xls',
                             DDE.APP_MODE_MINIMIZED);
END;

See also

About the DDE built-in package

DDE built-in package

DDE exceptions