This function takes the following parameters:
Attribute contained the desired value.
Index of the value to be returned, counting from 0.
Holds the value of the attribute.