PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Invisible, inactive or grayed control
  • Various
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
Count (Function)
In French: Occurrence
Returns the number of occurrences of a control in a window, in a page or in a group of controls.
Versions 15 and later
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
Versions 16 and later
PHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
PHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
PHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 15
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
Versions 16 and later
PHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
PHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
PHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
Versions 16 and later
PHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
PHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
PHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
Versions 19 and later
WINDEVWINDEV Mobile This function is now available in Windows Store Apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 19
WINDEVWINDEV Mobile This function is now available in Windows Store Apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WINDEVWINDEV Mobile This function is now available in Windows Store Apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Initialize the EDT_Caption control if it exists
IF Count(EDT_Caption) > 0 THEN
DISP_Caption()
END
Syntax
<Result> = Count(<Control Name>)
<Result>: Integer
  • Number of controls with the same name found in the window or in the page.
  • Number of controls found in a group of controls.
  • 0 if the control does not exist.
<Control Name>: Character string (with or without quotes)
Name of the control or name of the group of controls.
If this parameter corresponds to an empty string (""), it is automatically replaced by the name of the control to which the current process belongs.
For the subscripted controls, there is no need to specify the subscript.
Remarks

Invisible, inactive or grayed control

An invisible, inactive or grayed control is considered as being found in the window or in the page.

Various

Caution: A control must not be directly used in a process where its existence is checked. A runtime error will occur if the control does not exist.
Example (of what not to do):
IF Count(EDT_Control1) > 0 THEN
EDT_Control1 = "Foo"
END
Example (of what to do):
IF Count(EDT_Control1) > 0 THEN
CallProcedure(EDT_Control1)
END
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment