www.icetips.com  Icetips Utilities Documentation 5/15/2014    

Utility Class: ColorToHTML

Previous  Top  Next  


Prototype: (Long pColorValue),String

 

pColorValueClarion color value

 

ReturnsString containing the correct html color value as #RRGGBB

 

This method takes an ordinary Clarion 24bit color value and turns it into a standard HTML color string in the format '#RRGGBB'  See the TestUtilityClass procedure in the Example program

 

Example:

 

ITU        ITUtilityClass

Col        Long

HTMLColor  String(7)

Code

If ColorDialog('Select color',Col)

  HTMLColor = ITU.ColorToHTML(Col)

  ?HTMLColor {Prop:FontColor} = Col

  Display

End

 

See also:

HTMLToColor

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/colortohtml_utility.htm