Click or drag to resize

RgbScheme Function

X#
-- todo --
Returns an RGB color pair or an RGB color pair list from a specified color scheme.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax
 FUNCTION RgbScheme(
	nColorSchemeNumber,
	nColorPairPosition
) AS STRING CLIPPER
Request Example View Source

Parameters

nColorSchemeNumber (Optional)
Type: Usual
Specifies the number of the color scheme for which you want a complete RGB color listing. RGBScheme( ) returns 10 RGB color pairs.
nColorPairPosition (Optional)
Type: Usual
Returns a single RGB color pair from a color scheme. nColorPairPosition specifies the position of the RGB color pair in the color scheme. For example, if nColorPairPosition is 4, the fourth RGB color pair is returned.

Return Value

Type: String
Character
Remarks
Use SCHEME( ) to return a traditional color pair or a color pair list from a color scheme. RGB color pairs use numeric values to specify colors. Traditional color pairs use letters to specify colors.
Examples
X#
1Clear
2? RGBScheme(4,3)
See Also