Yes, you have an array with the names of the constants, and you loop throug them until your string (in this case COLOR_RED" is found. That would be element 16 (For examlple), then you look at element 16 of your "Array of constants" and at element 16 it finds the value 15.
@Gfk, I dont think changeing the value was the question here.
@Gfk, I dont think changeing the value was the question here.