Using a variable to change color of an object

/* I have a hollow rectangle named “ColorBox”
I am trying to change its color using a variable.
The nsnotify message at the end shows the correct ColorName choice, but the changeobject never takes effect…
suggestions on what I am missing???
Thanks.
*/
fileglobal fgCh
fgCh=“”
local list
list=Info(“ColorNames”)
arraysort list,list,¶
popupatmouse list, “”, fgCh // works fine showing “aliceblue”
showvariables fgCh
changeobject “ColorBox”,“color”,{fgCh}
// changeobject “ColorBox”,"color,fgCh
nsnotify fgCh
//shows correct choice, but the Colorbox does not change color

The color specification in the changeobject statement needed to be corrected. Here’s the corrected version

fileglobal fgCh
fgCh=“”
local list
list=Info(“ColorNames”)
arraysort list,list,¶
popupatmouse list, “”, fgCh // works fine showing “aliceblue”
showvariables fgCh
//changeobject “ColorBox”,“color”,{fgCh}
changeobject “ColorBox”,"color",htmlrgb(htmlcolor(fgCh))
nsnotify fgCh

Thanks (again & again), Dave.