%HI_GetItemText, %HI_SetItemText functions


Function
The function %HI_SetItemText sets the text of defined or current item of the Windows control of List box or the Tree view types.

The function %HI_GetItemText detects the text of defined or current item of the Windows control of List box or the Tree view types.

Declaration
%HI_SetItemText(
   INT in refId, 
   TEXT in itemText
   [, INT in itemIdx]
 )
  
TEXT %HI_GetItemText(
   INT in refId
   [,INT in itemIdx]
 )
Parameters
refIdReference to a graphic object (reference variable).
itemTextText in the added item.
itemIdxUnique identifier of the item.
Description

The function %HI_SetItemText sets the text defined by the parameter itemText to the current item (if the parameter itemIdx is not entered) or the item defined by the parameter itemIdx (from 1...).

The function %HI_GetItemText detects the text of the current item (if the parameter itemIdx is not entered) or of the item defined by the parameter itemIdx (from 1...).

Note
If given object of List box type is editable, the term current item is taken the input field for entering a text. For this item, there is also valid the parameter itemIdx=0.

Napíšte komentár