GetItemImage Method (TREEVIEW)
PLBCMP GUI Only
The GetItemImage method returns the image index for a specified item in a TREEVIEW object. The method uses the following format:
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A TREEVIEW object whose images are accessed.
return
Optional. A Numeric Variable that returns the image index.
item
Required. A decimal number or Numeric Variable that specifies the handle of the item accessed.
Flags Affected: EOS, OVER, ZERO
Note the following:
{index} is an item handle indicating the item within the object to access.
Upon completion, {return} will contain the image index.
If the value returned is zero, the ZERO Condition Flag is set.
If {return} is too small to contain the image index, the OVER Condition Flag is set.
The EOS Condition Flag is always cleared.
See Also: Method Syntax, TREEVIEW Methods
![]() |