CNT_GETITEM action


Declaration
CNT_GETITEM _hContainer, _index, _value

Parameters
_hContainer in Identifier of Int type - data container.
_index in Sequence number of item (from 1...) of the array created by the action CNT_CNVTOARRAY.
_value out Value from the container, if the value of the parameter _bFound is @TRUE, otherwise the value of the parameter remains unchanged.

Description
The action reads the value of specified by its sequence number (the parameter _index) from the data container and returns the value in the parameter _value.

Analogous to the action CNT_FIND, the parameter _value must be of proper type.

The parameter _index may be a value within the interval 1..._nr, while _nr is returned by calling the action CNT_GETNR.
Note
The action CNT_CNVTOARRAY that creates an array for accessing the values of the container by means of index.

Related pages:

Napíšte komentár