RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Slice Function

Returns a sub-section of an array.

Pascal
function Slice(var A: array; Count: Integer): array;
C++
array Slice(array A, int Count);

System

In Delphi code, use Slice to select a sub-section (slice) of an array to be passed as an open array parameter. Slice is only allowed as a parameter in a call to a procedure or function that expects an open array parameter. Slice selects the first Count elements of the array given by A to be passed as an open array parameter. A can be an open array parameter itself, allowing dynamically allocated arrays to be passed to open array parameters. 

 

SetLength 

IDH

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!