4D v14.3

GET LIST ITEM PARAMETER

Home

 
4D v14.3
GET LIST ITEM PARAMETER

GET LIST ITEM PARAMETER 


 

GET LIST ITEM PARAMETER ( {* ;} list ; itemRef | * ; selector ; value ) 
Parameter Type   Description
Operator in If specified, list is an object name (string) If omitted, list is a list reference number
list  ListRef, String in List reference number (if * omitted) or Name of list type object (if * passed)
itemRef | *  Operator, Longint in Item reference number or 0 for the last item appended to the list or * for the current list item
selector  String in Parameter constant
value  String, Boolean, Real in Current value of parameter

The GET LIST ITEM PARAMETER command is used to find out the current value of the selector parameter for the itemRef item of the hierarchical list whose reference or object name is passed in the list parameter.

If you pass the first optional * parameter, you indicate that the list parameter is an object name (string) corresponding to a representation of the list in the form. If you do not pass this parameter, you indicate that the list parameter is a hierarchical list reference (ListRef). If you only use a single representation of the list or work with structural items (the second* is omitted), you can use either syntax. Conversely, if you use several representations of the same list and the second * is passed, the syntax based on the object name is required since each representation can have its own current item.

Note: If you use the @ character in the object name of the list and the form contains several lists that match this name, the GET LIST ITEM PARAMETER command will be applied to the first object whose name corresponds.

You can pass a reference number in itemRef. If this number does not correspond to an item in the list, the command does nothing. You can also pass 0 in itemRef to indicate the last item added to the list (using APPEND TO LIST).

Lastly, you can pass * in itemRef: in this case, the command is applied to the current item of the list. If several items are selected manually, the current item is the last one that was selected. If no item is selected, the command does nothing.

In selector, you can pass the Additional text constant (found in the “Hierarchical Lists” theme) or any custom value. For more information about the selector and value parameters, please refer to the description of the SET LIST ITEM PARAMETER command.

 
PROPERTIES 

Product: 4D
Theme: Hierarchical Lists
Number: 985

 
HISTORY 

Created: 4D v11 SQL

 
SEE ALSO 

Hierarchical Lists
SET LIST ITEM PARAMETER

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)