Share this page

# nca_message_box_press

Message Object Functions

Presses a button in a message window.

    int nca_message_box_press( LPCSTR name, int button );

name | The logical name of the message box.
button | The index of the button to press.

The nca_message_box_press function presses the specified button in a message window. The button is indicated by its index, usually the order of the button from left to right. For example, if a message box has three buttons: Yes, No and Cancel, the corresponding indexes may be 1,2, and 3.

## Return Values

Oracle NCA Error Codes

## Parameterization

The following variable can be parameterized using standard parameterization: name

## Example

In the following example, the nca_message_box_pressfunction clicks button 4, 1, and 2 in the Forms message box. These buttons correspond to Cancel, Yes, and No.

Copy code

    nca_edit_click("ECETPDEF.ECE_TP_HEADERS.BANK_CODE.0");
    nca_menu_select_item("Toolbar", "Query;Enter");
    nca_message_box_press("Forms",4);
    nca_menu_select_item("Toolbar", "Query;Enter");
    nca_message_box_press("Forms",1);
    nca_popup_message_press("Error", "OK");
    nca_edit_click("ECETPDEF.ECE_TP_HEADERS.TP_CODE.0");
    nca_menu_select_item("Toolbar", "Query;Enter");
    nca_message_box_press("Forms",2);
    nca_menu_select_item("Toolbar", "Query;Enter");

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