Share this page

# nca_button_set

Button Object Functions

Sets the state of a radio or check button.

    int nca_button_set( LPCSTR button, int istate , int id );

button | The logical name of the button.
istate | The initial state of the button. One of two states can be specified: ON(1), or OFF (0).
id | The id of the button (optional argument).

The nca_button_set function sets a button state to ON or OFF. The TOGGLE option reverses the current state.

## Return Values

Oracle NCA Error Codes

## Parameterization

The following variable can be parameterized using standard parameterization: button

## Example

In the following example, the nca_button_set function sets the One Time Flag button to ON.

    nca_lov_retrieve_items("Supplier Types",1,11);
    nca_lov_select_item("Supplier Types", "One-Time");
    nca_button_set("APXVDMVD.VNDR.ONE_TIME_FLAG.0",1,260);
    nca_button_press("APXVDMVD.CTRL.VNDR_FOLDER_OPEN.0");

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: