PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns an array corresponding to the union of two arrays.
The following arrays can be handled:
  • One-dimensional array of simple elements (int, real, string).
  • One-dimensional array of structures.
Versions 27 and later
Java This function is now available for Java applications.
New in version 27
Java This function is now available for Java applications.
Java This function is now available for Java applications.
Example
// First array of integers
arrMyArray1 is array of int
arrMyArray1.Add(1)
arrMyArray1.Add(6)
arrMyArray1.Add(1)
arrMyArray1.Add(3)
 
// Second array of integers
arrMyArray2 is array of int
arrMyArray2.Add(3)
arrMyArray2.Add(5)
arrMyArray2.Add(8)
arrMyArray2.Add(2)
 
// Union array
arrMyUnion is array of int
arrMyUnion = arrMyArray1.Union(arrMyArray2)
// the result is 1;6;3;5;8;2
Syntax
<Result> = <First WLanguage array>.Union(<Second WLanguage array>)
<Result>: Array
Array variable that contains the result of the union.
<First WLanguage array>: Array
Name of the Array variable that corresponds to the first array to use. This array must be a one-dimensional array. This array will not be modified.
<Second WLanguage array>: Array
Name of the Array variable that corresponds to the second array to use. This array must be a one-dimensional array. This array must be of the same type as the array specified with the <First WLanguage array> parameter. This array will not be modified.
Remarks
  • If an array contains several duplicates, these duplicates will not be kept.
  • The resulting array will not be sorted, even if the original arrays are.
Business / UI classification: Business Logic
Component: wd270obj.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment