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

DDE.APP_FOCUS built-in procedure

This procedure activates a DDE server application program started by DDE.APP_BEGIN.

Syntax

DDE.APP_FOCUS (appid)

Parameter

Type

Description

AppID
PLS_INTEGER

Application identifier that is returned from DDE.APP_BEGIN

Restrictions

To activate a DDE server application, the DDE server application must have been previously started by calling DDE.APP_BEGIN.

Usage notes

The application can also be activated in standard Microsoft Windows fashion, such as by clicking within the application window.

Example


DECLARE
  AppID PLS_INTEGER;
BEGIN
  /* Start Microsoft Excel application in fullscreen mode. */
   AppID := DDE.APP_BEGIN('C:\excel\excel.exe,
            DDE.APP_MODE_MAXIMIZED);
  /* Activate the application window. */
     DDE.APP_FOCUS(AppID);
END;

See also

About the DDE built-in package

DDE built-in package

DDE built-in exceptions