AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de controles
  • Invisible, inactive or grayed out control
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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.
Example
// Si le champ SAI_Intitulé existe, initialisation du champ
IF Count(SAI_Intitulé) > 0 THEN
	Affiche_Intitulé()
END
Syntax
<Result> = Count(<Search control>)
<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.
<Search control>: Control name or character string
Name of the control or name of the group of controls.
If this parameter corresponds to an empty string (""), it is automatically replaced with the name of the control to which the current event belongs.
For the indexed controls, there is no need to specify the subscript.
Remarks

Invisible, inactive or grayed out control

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

Miscellaneous

Warning Do not use a field directly in a process where you are testing its existence. A runtime error will occur if the control does not exist.
Example (of what not to do):
IF Count(SAI_Champ1) > 0 THEN
	SAI_Champ1 = "Toto"
END
Example (of what to do):
IF Count(SAI_Champ1) > 0 THEN
	AppelProcédure(SAI_Champ1)
END
Component: wd300obj.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local