Forum Discussion
rraghvani
Champion Level 3
3 years ago
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.