![]() The elements of all but the final dimension of an array are all pointers to sub-arrays that make up the whole array. When copying multi-dimensional arrays, only the first dimension is copied. To guarantee copying to the end of the string or array, use the MaxInt constant as the Count value. Less than Count elements if the end of the Source array is encountered before Count elements have been copied.įor string copying, a StartChar less than 1 is treated as 1. Up to Count elements are copied from the StartIndex of the Source array to the returned array. The first element of an array has index = 0. Less than Count characters if the end of the Source string is encountered before Count characters have been copied. Up to Count characters are copied from the StartChar of the Source string to the returned string. ![]() The first character of a string has index = 1. In the second, it creates a new array from part of an existing array. In the first, it creates a new string from part of an existing string. Delphi Basics : copy command Delphi BasicsĬreate a copy of part of a string or an arrayįunction copy( Source string StartChar, Count Integer):string įunction copy ( Source array StartIndex, Count Integer:array
0 Comments
Leave a Reply. |