4D v13.4INSERT IN LIST |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
INSERT IN LIST
INSERT IN LIST
The INSERT IN LIST command inserts the item designated by the itemRef parameter in the list whose reference number or object name you pass in list. 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 work with the current item (the second * is passed), the syntax based on the object name is required since each representation can have its own current item. The beforeItemRef parameter can be used to designate the item before which you wish to insert the new item:
You pass the text and the item reference number of the new item in itemText and itemRef. If you want for the item to include subitems, pass a valid list reference number in the sublist parameter. In this case, you must also pass the expanded parameter. Pass either True or False in this parameter so that this sublist is displayed either expanded or collapsed respectively. The following code inserts an item (with no attached sublist) just before the currently selected item in the hList list: vlUniqueRef:=vlUniqueRef+1 |
PROPERTIES
Product: 4D
INDEX HISTORY
Modified: 4D v11 SQL SEE ALSO |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||