Share this page

# Example: lr.advance_param

In the following example, Stock is a parameter defined in the Parameter list. The lr.advance_param function advances to the next value in the parameter file.

    lr.output_message("Track Stock: " + lr.eval_string("<STOCK>"));
        for(int i=0; i<3; i++) {
            int j = lr.advance_param("STOCK");
             lr.output_message("Track Stock: " + lr.eval_string("<STOCK>"));
        }

    Example: The Stock.dat file has the following values:
        STOCK
        MERQ
        IBM
        MSFT

    Example: Output:
        Track Stock: MERQ
        Track Stock: IBM
        Track Stock: MSFT

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