Hi,
Apologies if the answer to this question is elsewhere in the forum / documentation but I have looked extensively and can't see it has been raised before. Apologies also if there is a straightforward answer.
My question is, in a Map or KeyValueStore, is it possible to use the same name for the Key and a Variable, but, more importantly, automatically pass the resultant key value to the variable of the same name as the key?
e.g. My programme has a variable called 'TextColour1'. its value is 'Colors.Blue'.
I am using the Preference Manager Library to keep track / control of the keys and values.
If I save the value Colors.Blue to the Key "TextColour1", is there a way to automatically assign the returned value for the Key "TextColour1" to the variable 'TextColour1'.
I know I could rewrite my program to get values directly from the map, but in most instances I would prefer to work with values assigned to variables.
Many thanks,
Andy