PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV, WINDEV Mobile 24 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 the number of widgets found in a Dashboard control. The following widgets are taken into account:
  • the widgets declared in the window editor or in the page editor,
  • the widgets added by <Dashboard>.AddWidget.
Versions 20 and later
Windows This function is now available in WEBDEV Server.
New in version 20
Windows This function is now available in WEBDEV Server.
Windows This function is now available in WEBDEV Server.
Example
// Displays the number of displayed widgets and the total number of widgets
InfoBuild("The dashboard contains %1 widgets among which %2 are displayed", ...
DASH_Dashboard.Count(toTotal),
DASH_Dashboard.Count(toShown))
Syntax
<Result> = <Dashboard control>.Count(<Type of widget>)
<Result>: Integer
Number of widgets found in the Dashboard control.
<Dashboard control>: Control name
Name of Dashboard control to use.
<Type of widget>: Integer constant
Type of Widget to take into account:
toShownOnly the Widgets displayed are taken into account.
toTotalAll Widgets are taken into account (no matter whether they are displayed or not).
Component : wd240obj.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment