Hi all,
How convert a NotesColor value (colors numbered 0 through 240) to a RGB value corresponding value stored in a Color field?
Thks,
HES
Hi all,
How convert a NotesColor value (colors numbered 0 through 240) to a RGB value corresponding value stored in a Color field?
Thks,
HES
Subject: Color in ND6
Assuming you’re in LotusScript and you have a NotesColor in a NotesColorObject, then:
dim hexstr as string
hexstr = Hex(notesColorObject.Red) +
Hex(notesColorObject.Green) +
Hex(notesColorObject.Blue)
Then just set the value of the color field to the above hexstr.
In other words, a color field expects the R,G,B value to be given “web style” as a hex string.
Bill Andreas
Senior Designer, IBM