Kbase P169653: How to specify a System.Drawing.Color structure from a predefined color name in ABL
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  7/13/2010 |
|
Status: Unverified
GOAL:
How to specify a System.Drawing.Color structure from a predefined color name in ABL
GOAL:
How to specify a System.Drawing.Color structure from a string in ABL
GOAL:
How to specify a System.Drawing.Color structure from a variable in ABL
FACT(s) (Environment):
Windows
OpenEdge 10.2x
FIX:
Use the FromName method of System.Drawing.Color to create a Color structure from a string or a CHARACTER variable containing the name of a predefined color. For example:
DEFINE VARIABLE oColor AS System.Drawing.Color NO-UNDO.
DEFINE VARIABLE vShadeColor AS CHARACTER NO-UNDO.
vShadeColor = 'AliceBlue'.
oColor = System.Drawing.Color:FromName(vShadeColor).