Share this page

# nca_lov_select_random_item

List Object Functions

Selects a random item from a list of values.

    int nca_lov_select_random_item( LPCSTR name,char *item );

name | The logical name of the window containing the list of values.
item | The selected value.

The nca_lov_select_random_item function selects a random item from a list of values. The second argument is an output parameter indicating which value was chosen during the random selection.

## Return Values

Oracle NCA Error Codes

## Parameterization

The following variable can be parameterized using standard parameterization: name

## Example

In the following example, the nca_lov_select_item function selects a random item from the list of values in the Journals window.

Copy code

    char selected_item[256];
    nca_edit_click("GLXJEENT.FOLDER_QF.BATCH_NAME.0");
    nca_button_press("GLXJEENT.TOOLBAR.LIST.0");
    nca_lov_find_value("Journals", "");
    nca_lov_retrieve_items("Journals",1,8);
    nca_lov_select_random_item("Journals",selected_item);
    lr_output_message("The selected item was %s\n", selected_item);

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: