PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV, WEBDEV and WINDEV Mobile 26 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns an array without duplicates.
The following arrays can be handled:
  • One-dimensional array of simple elements (int, real, string).
  • One-dimensional array of structures. Duplicates are deleted according to the value of one or more members.
Example
// First array of integers
arrMyArray1 is array of int
arrMyArray1.Add(1)
arrMyArray1.Add(2)
arrMyArray1.Add(1)
arrMyArray1.Add(3)
 
// "Distinct" array
arrMyDistinct is array of int
arrMyDistinct = arrMyArray1.Distinct()
// the result is 1; 2; 3
Syntax
<Result> = <WLanguage array>.Distinct()
<Result>: Array
Array variable that contains the array without duplicates.
<WLanguage array>: Array
Name of Array variable to use. This array must be a one-dimensional array.
Remarks
You can also delete the duplicates in an array using <Array variable>.DeleteDuplicate.
  • <Array variable>.DeleteDuplicate directly manipulates the array passed as parameter.
  • <Array>.Distinct does not modify the array passed as parameter and returns a new array without the duplicates.
Business / UI classification : Business Logic
Component : wd260vm.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment