SetItemNum Method (LISTVIEW)


10.7, PLBCMP GUI Only

 

The SetItemNum method stores a numeric value into a specified item in a LISTVIEW object. The method uses the following format:

 

[label]

{object}.SetItemNum

[GIVING {return}] USING [*Index=]{index}:

 

 

[*Value=]{value}[,[*Subitem=]{subitem}][:

 

 

[*Format=]{format}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A LISTVIEW object that is accessed.

return

Optional. A Numeric Variable that indicates the success or failure of the method.

index

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

value

Required. A Numeric Variable that is stored into a LISTVIEW item as a numeric string.

subitem

Optional. A zero-based decimal number or Numeric Variable that specifies the sub-item number.

format

Optional. A decimal number or Numeric Variable that specifies the format used for the data being stored when the {value} is a PL/B INTEGER.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The {sub-item} specifies that the text is to associate with a child item of {index}. If not given, zero is assumed and the text of the item label is set.

  2. Upon completion, {return} will contain the status of the modification as follows. $TRUE and $FALSE are defined in PLBEQU.INC.

  3.  

    Value

    Constant

    The modification ...

    0

    $FALSE

    failed.

    1

    $TRUE

    was successful.

 

  1. If the value returned is zero, the ZERO Condition Flag is set.

  2. The OVER and EOS Condition Flags are always cleared.

  3. The {format} value is not used when the input {value} is a numeric string from a FORM. The {format} value is used when the input {value} is a value from an INTEGER. The {format} values are described as follows:

  4.  

    Value

    The value is stored as a

    0

    decimal string. This is the same as the default behavior when {format} is not specified.

    1

    hexadecimal string with a leading '0x' identifier.

     

  5. For improved performance in the Application Server environment, do not specify the optional return value and parameters unless needed.

 

 

See Also: GETITEMNUM, LISTVIEW Methods

 



PL/B Language Reference SetItemImage Method (LISTVIEW) SetItemParam Method (LISTVIEW)