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
The Exist property determines if the element of an associative array exists.
Example
// Associative array of integers
// indexed on strings and with duplicates
aaIDPerCustomer is associative array of int
// Add the identifier of customer "A"
aaIDPerCustomer["A"] = 55
// Add the identifier of customer "B"
aaIDPerCustomer["B"] = 321
 
IF aaIDPerCustomer["A"]..Exist = True THEN
Info("At least one element A exists")
END
Syntax
<Result> = <Element used>.Exist
<Result>: Boolean
  • True if the specified element exists (is not empty),
  • False otherwise.
<Element used>: Element of an associative array
Name of element to use (element of associative array).
Remarks
The Exist property determines if the element of an associative array exists.
  • For an associative array without duplicates, the Exist property is set to True if the element exists.
  • For an associative array with duplicates, the Exist property is set to True if at least one element exists.
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment