4D v14.3EDIT ITEM |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
EDIT ITEM
EDIT ITEM
The EDIT ITEM command allows you to edit the current item or the item number item in the array or the list set in the object parameter. If you pass the optional * parameter, you indicate that the object parameter is an object name (in this case, pass a string in object). If you do not pass the parameter, you indicate that the object parameter is a table or a variable. In this case, you do not pass a string but a table or a variable reference. This command applies to the following enterable objects:
If the command is used with an enterable object that is not a list, it then acts the same as the GOTO OBJECT command. The optional item parameter allows you to set the position of the item (hierarchical list) or the row number (list box, list forms and subform in “multiple selection” mode) to change to editing mode. If you do not pass this parameter, the command is applied to the current item for object. If there is no current item, the first item of object changes to editing mode. Notes:
This command can be particularly useful when creating a new item in a hierarchical list. When the command is called, the last item added or inserted in the list automatically becomes editable without the user having to do anything. vlUniqueRef:=vlUniqueRef+1 Given two columns in a list box whose variable names are “Array1” and “Array2” respectively. The following example inserts a new item in the two arrays and passes the new item of Array2 into editing mode: $vlRowNum:=Size of array(Array1)+1 |
PROPERTIES
Product: 4D
HISTORY
Created: 4D 2004 SEE ALSO
GOTO OBJECT ARTICLE USAGE
4D Language Reference ( 4D v12.4) Inherited from : EDIT ITEM ( 4D v11 SQL Release 6) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||