4D v14.3APPEND TO ARRAY |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
APPEND TO ARRAY
APPEND TO ARRAY
The APPEND TO ARRAY command adds a new element at the end of array and assigns value to the element. In interpreted mode, if array does not exist, the command creates it with regard to the type of value. This command works with all kind of arrays: string, number, Boolean, date, pointer and picture. The type of value must match the array type, otherwise the syntax error 54 “Argument types are incompatible” is generated. The following values will, however, be accepted: The following code: INSERT IN ARRAY($myarray;Size of array($myarray)+1) ... can be replaced with: APPEND TO ARRAY($myarray;$myvalue) |
PROPERTIES
Product: 4D
HISTORY
Created: 4D 2004 SEE ALSO
DELETE FROM ARRAY ARTICLE USAGE
4D Language Reference ( 4D v11 SQL Release 6) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||