Forum Discussion
rraghvani
2 years agoChampion Level 3
You will have to get the integer value and perform a conditional statement to see if it matches with any of the constant values and return the colour. For example,
switch (IntColour) {
case clAqua:
colour = BuiltIn.clAqua;
break;
case clCream:
colour = BuiltIn.clCream;
break;
case clNavy:
colour = BuiltIn.clNavy;
break;
}
There may be existing snippets of coding on the internet if you search for it.
Related Content
- 2 years ago
- 6 years ago
- 7 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago