Copying arrays of different dimensionsMiscellaneous WINDEV WEBDEV WINDEV Mobile Others .Copy (Function) In french: .Copie Copies the content of a WLanguage array or an associative array into another one.Remark: This function can only be used on the WLanguage arrays.Versions 15 and later This function is now available for Android applications.New in version 15 This function is now available for Android applications. This function is now available for Android applications.Versions 16 and later This function is now available for Windows Phone applications.New in version 16 This function is now available for Windows Phone applications. This function is now available for Windows Phone applications.Versions 17 and later This function is now available for iPhone/iPad applications.New in version 17 This function is now available for iPhone/iPad applications. This function is now available for iPhone/iPad applications.Versions 18 and later This function is now available in Android Widget mode. This function is now available in Windows Store apps mode.New in version 18 This function is now available in Android Widget mode. This function is now available in Windows Store apps mode. This function is now available in Android Widget mode. This function is now available in Windows Store apps mode.Versions 21 and later This function is now available in Apple Watch mode. This function is now available in browser code. This function is now available in Universal Windows 10 App mode.New in version 21 This function is now available in Apple Watch mode. This function is now available in browser code. This function is now available in Universal Windows 10 App mode. This function is now available in Apple Watch mode. This function is now available in browser code. This function is now available in Universal Windows 10 App mode.Example MyArray is array of 2 stringsMyArray[1] = "WINDEV"MyArray[2] = "WEBDEV"MyArrayCopy is array of 2 stringsMyArray.Copy(MyArrayCopy)  ArrA1 is array of int ArrA1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]// Copy the first 3 elements from arrA1 to arrA2arrA2 is array of intArrA1.Copy(arrA2, 1, 3) // [1, 2, 3]// Copy 4 integers from position 4arrA3 is array of intArrA1.Copy(arrA3, 4, 4) // [4, 5, 6, 7]// Copy the end of array from position 6arrA4 is array of intArrA1.Copy(arrA4, 6) // [7, 8, 9, 10] Syntax .Copy( [,  [, ]]) : ArrayName of the Array variable to copy. : ArrayName of the Array variable into which the copy must be performed. : Optional integerVersions 18 and laterSubscript in the source array from which the copy must be performed. This subscript must be included between 1 and the last array subcript. This parameter is set to 1 by default. Otherwise, a WLanguage error occurs at run time. This parameter cannot be used with an associative array. This parameter is not available.New in version 18Subscript in the source array from which the copy must be performed. This subscript must be included between 1 and the last array subcript. This parameter is set to 1 by default. Otherwise, a WLanguage error occurs at run time. This parameter cannot be used with an associative array. This parameter is not available.Subscript in the source array from which the copy must be performed. This subscript must be included between 1 and the last array subcript. This parameter is set to 1 by default. Otherwise, a WLanguage error occurs at run time. This parameter cannot be used with an associative array. This parameter is not available. : Optional integerVersions 18 and laterSize of copy. Caution: The interval of values defined by and must be entirely included in the source array. Otherwise, a WLanguage error occurs at run time. By default, the copy is performed from the specified subscript to the end of the array. This parameter cannot be used with an associative array. This parameter is not available.New in version 18Size of copy. Caution: The interval of values defined by and must be entirely included in the source array. Otherwise, a WLanguage error occurs at run time. By default, the copy is performed from the specified subscript to the end of the array. This parameter cannot be used with an associative array. This parameter is not available.Size of copy. Caution: The interval of values defined by and must be entirely included in the source array. Otherwise, a WLanguage error occurs at run time. By default, the copy is performed from the specified subscript to the end of the array. This parameter cannot be used with an associative array. This parameter is not available.Remarks Copying arrays of different dimensionsSimple array: A WLanguage error occurs at run time.Dynamic array: The destination array is entirely re-created (and therefore cleared) with the copy.MiscellaneousA WLanguage error occurs if the type of the elements found in the destination array differs from the type of the elements found the source array.If the destination array contains elements, these elements are deleted.This function can be used with associative arrays. In this case, it is only possible to copy the entire array. It is not possible to copy part of the associative array. This function cannot be used with the fixed arrays.Component : wd250vm.dll Minimum version required Version 23 This page is also available for…