Share this page

# nca_set_window

Window Object Functions

Indicates the name of the active window.

    int nca_set_window( LPCSTR window );

window | The logical name of the window.

The nca_set_window function indicates the name of the active window.

During recording, a nca_set_window statement is automatically generated whenever you perform an operation on a control that belongs to a window different from the previously active window. All subsequent actions are performed on this window until the next nca_set_window statement is interpreted. This function allows you to better understand the steps in the script. It does not, however, add any functionality to the script.

## Return Values

Oracle NCA Error Codes

## Parameterization

The following variable can be parameterized using standard parameterization: window

## Example

In the following example, the nca_set_window function indicates that the focus is on the Oracle Applications and Responsibilities windows.

    nca_set_window("Oracle Applications");

    nca_edit_set("SIGNON_USERNAME_0", "OPERATIONS");

    nca_obj_type("SIGNON_USERNAME_0",'\t',0);

    nca_edit_set("SIGNON_PASSWORD_0",lr_unmask("39c75500579e2a84e5512a"));

    nca_button_press("SIGNON_CONNECT_BUTTON_0");

    nca_set_window("Responsibilities");

    nca_lov_retrieve_items("Responsibilities",1,5);

    nca_lov_retrieve_items("Responsibilities",6,9);

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: