Top
PowerCOBOL V11.0 Reference
FUJITSU Software

4.318 Value Property

Description:

Contains a value associated with the control.

Used in:

Controls

CheckBox

OptionButton

ProgressIndicator

Slider

ScrollBar

Object

Button

Values (with constants):

CheckBox

0 - Unchecked(POW-TRISTATE-UNCHECKED)
1 - Checked(POW-TRISTATE-CHECKED)
2 - Grayed(POW-TRISTATE-GRAY)

The value of 2 is only effective when the ThreeStates property is True.

OptionButton

True:Selected(POW-TRUE)

False:Not selected.(POW-FALSE)

ProgressIndicator

Value indicating the progress.

The value should satisfy the following relationships:
Min property <= value
and
Max property >= value

Slider

Value indicating the present position.

The value should satisfy the following relationships:
Min property <= value
and
Max property >= value

ScrollBar

Value indicating the position of the scroll box.

The value should satisfy the following relationships:
-32768 <= value <= 32767
and
Min property <= value
and
Max property >= value
and
value <= Max property - (ScrollPage property - 1)

If you change the value of the Max or Min property and the above relationship is not satisfied, PowerCOBOL automatically resets the value to the closest valid value.

Button

True - Selected.(POW-TRUE)
False - Not selected.(POW-FALSE)

It is only effective when the Style property is
"2 - CheckButton" or "3 - CheckButtonGroup".

If the value becomes True, the button is changed to the image contained in the HotImageList .

If no HotImageList is specified, the image specified in the ImageList is used.

Default values:

CheckBox

0 - Unchecked(POW-TRISTATE-UNCHECKED)

OptionButton

False: Not selected.(POW-FALSE)

ProgressIndicator

Value of the Min property

Slider

0

ScrollBar

0

Button

False - Not selected.(POW-FALSE)

Data type:

CheckBox

COBOL picture:S9(4) COMP-5

OLE data type:VT_I2

OptionButton and Button

COBOL picture:S9(4) COMP-5

OLE data type:VT_BOOL

ProgressIndicator, Slider, ScrollBar

COBOL picture:S9(9) COMP-5

OLE data type:VT_I4

Design time access:

ProgressIndicator

Not accessible.

Others

Set and reference.

Execution time access:

Set and reference.

Backward compatibility attributes:

CheckBox, OptionButton

POW-CHECKPIC S9(4) COMP-5

ScrollBar

POW-SCRPOSITIONPIC S9(4) COMP-5

Others

None.