get_values()

Returns a list of values from a table.

Synopsis

get_values(table_name)

Description

This function returns the list of values stored in the indicated table.

Parameters

table_name

The name of a table variable.

Returns

This function returns the list of values stored in the indicated table. The keys are sorted in ascending order of the keysa.

If the table is empty, the function returns an empty list.

Examples

The following example sets the value_list to (3, 4, 2)

variables {
        table some_table
    }
    clear(some_table)
    some_table[40] = 1
    some_table[30] = 2
    some_table[10] = 3
    some_table[20] = 4
    erase(some_table,40)
    value_list = get_value(some_table)

See Also

clear(), erase(), get_keys()