GetItemCheck Method (TREEVIEW)


PLBCMP GUI Only

 

The GetItemCheck method returns the checked state for a specified item in a TREEVIEW or object. The method uses the following format:

 

[label]

{object}.GetItemCheck

[GIVING {return}] USING [*Item=]{index}

 

Where:

label

Optional. A Program Execution Label.

object

Required. A TREEVIEW object that is accessed.

return

Optional. A Numeric Variable that returns the item's check state.

index

Required. A decimal number or Numeric Variable that specifies the zero-based item accessed.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. Upon completion, {return} will contain a one (1) if the item is checked or a zero (0) if it is clear.

  2. If the value returned is zero, the ZERO condition flag is set.

  3. If {return} is too small to contain the value, the OVER Condition Flag is set.

  4. The EOS Condition Flag is always cleared.

  5. The CHECKBOX property must be set to $ON for the object.

 

 

See Also: Method Syntax, TREEVIEW Methods

 



PL/B Language Reference GetFileItem Method (TREEVIEW) GetItemImage Method (TREEVIEW)