Navigation:  Classes > bColorCondition >

bColorCondition:Init()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Creates an object of the class bColorCondition.

Class

bColorCondition

Type

Method

Syntax

bColorCondition{

<cCondition> | <oCondition> | <cbCondition>,

[<oServer>],

[<oForeground>],

[<oBackground>]

} Æ oColorCondition

Arguments

<cConditon>The condition as string. This is converted automatically into object of the class _Codeblock. The conversion is made thereby with the following instruction:

 

&("{|Server, Column, Row, RecNo| " + cCondition + "}")

 

Data Type:String

 

<oConditon>The condition as an object of the class _CodeBlock.
Date type:CodeBlock

 

<cbCondition>The condition as Codeblock
Data Type:Codeblock

 

<oServer>The server that is to be specified as argument during the evaluation of the Codeblock. Thereby conditions can be defined in which accesses to the server are contained (see samples).
Data Type:Object

 

<oForeground>The foreground color that is to be used, if the condition is true.
Data Type:Color

 

<oBackground>The background color that is to be used, if the condition is true.
Data Type:Brush

Return Value

oColorConditionThe created object of the class bColorCondition.
Data Type:bColorCondition

Description

bColorCondition:Init() creates a new object of the class bColorCondition and initializes it.

 

The foreground and background color for selected cells/rows can be defined with the accesses bColorCondition:InactiveSelectedBackground, bColorCondition:InactiveSelectedForeground, bColorCondition:SelectedBackgroundand bColorCondition:SelectedForeground.

See Also

bColorCondition:Background

bColorCondition:Eval()

bColorCondition:Foreground

bColorCondition:InactiveSelectedBackground

bColorCondition:InactiveSelectedForeground

bColorCondition:SelectedBackground

bColorCondition:SelectedForeground

 


Page url: http://www.YOURSERVER.com/index.html?bcolorcondition_init.htm