Icon Delete

Unit: Internal

Available In: Client and Server Applications

procedure Delete(const Value: array of <Type>; Index: Integer;
                 Count: Integer)

procedure Delete(const Value: array of <Type>; Index: Integer)

The Delete procedure deletes a portion of the Value array input parameter. The optional Index input parameter specifies where to start the deletion, and the optional Count input parameter specifies the number of array elements to delete. If the Count input parameter is not specified, then the deletion will proceed until the end of the Value input parameter.

Information This procedure cannot be used with strings in Elevate Web Builder. Strings are immutable in JavaScript, and therefore cannot be modified in-place using procedures such as this. For more information on these types, please see the Types topic.

Examples

X := [10,20,30,40];
Delete(X, 2, 2); // X is [10,20] after the Delete call
Image