PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Browsing table control with continuous scrollbar
  • Array and associative array
  • Limit
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
Warning
From version 24, Occurrence is kept for backward compatibility. This function is replaced by Count.
..Count is used to find out the number of elements in a set. You can find out:
  • the number of rows in a List Box or Combo Box control.
  • the number of rows in a Table control. If a filter is implemented on a column, ..Count returns the number of displayed elements.
  • the number of rows in a Looper control.
  • the number of elements in a ListView control.
  • the number of rows in a Table control column.
  • the number of options in a Radio Button or Check Box control.
  • the number of controls in a group of controls.
  • the number of elements in a TreeView control.
  • the number of series in a Chart control.
  • the number of elements in an array, associative array or advanced array (arrays used in the gglxxx variables for example) as well as the number of occurrences for an element of the associative array.
  • the number of elements in a WLanguage queue, list or stack.
  • Versions 19 and later
    the number of subscripted sub-elements in a variant.
    New in version 19
    the number of subscripted sub-elements in a variant.
    the number of subscripted sub-elements in a variant.
  • the number of panes in a Tab control.
  • Versions 15 and later
    WEBDEV - Server codeWEBDEV - Browser code the number of files in an Upload control.
    New in version 15
    WEBDEV - Server codeWEBDEV - Browser code the number of files in an Upload control.
    WEBDEV - Server codeWEBDEV - Browser code the number of files in an Upload control.
  • Versions 16 and later
    WINDEVWINDEV Mobile the number of options in a menu.
    New in version 16
    WINDEVWINDEV Mobile the number of options in a menu.
    WINDEVWINDEV Mobile the number of options in a menu.
  • Versions 17 and later
    WINDEV the number of elements in an Organization Chart control.
    New in version 17
    WINDEV the number of elements in an Organization Chart control.
    WINDEV the number of elements in an Organization Chart control.
WEBDEV - Browser code ..Count is used to find out:
  • the number of rows found in a List Box, Table, TreeView Table, Looper, Linear Looper, Tab or Combo Box control.
  • Versions 17 and later
    the number of elements in an array or associative array as well as the number of occurrences for an element of the associative array.
    New in version 17
    the number of elements in an array or associative array as well as the number of occurrences for an element of the associative array.
    the number of elements in an array or associative array as well as the number of occurrences for an element of the associative array.
Note: ..Count can be used on a browsing Table, List Box, Looper or Combo Box control and on a memory Table, List Box, Looper or Combo Box control.
Versions 16 and later
Universal Windows 10 App This property is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This property is now available for the Windows Phone applications.
Universal Windows 10 App This property is now available for the Windows Phone applications.
Versions 15 and later
Android This property is now available for the Android applications.
New in version 15
Android This property is now available for the Android applications.
Android This property is now available for the Android applications.
Versions 17 and later
iPhone/iPad This property is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for the iPhone/iPad applications.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
Versions 20 and later
WINDEV MobileAndroidiPhone/iPad This property is now available for the Table controls and for the table columns in the Android applications and in the iPhone/iPad applications.
New in version 20
WINDEV MobileAndroidiPhone/iPad This property is now available for the Table controls and for the table columns in the Android applications and in the iPhone/iPad applications.
WINDEV MobileAndroidiPhone/iPad This property is now available for the Table controls and for the table columns in the Android applications and in the iPhone/iPad applications.
Versions 21 and later
Apple Watch This property is now available in Apple Watch mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
AndroidAndroid Widget Java This property is now available for the Queues, Stacks and Lists.
New in version 21
Apple Watch This property is now available in Apple Watch mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
AndroidAndroid Widget Java This property is now available for the Queues, Stacks and Lists.
Apple Watch This property is now available in Apple Watch mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
AndroidAndroid Widget Java This property is now available for the Queues, Stacks and Lists.
Example
// Number of elements found in the "TABLE_CustomerTable" control
ResCount = TABLE_CustomerTable..Count
// Number of elements in CustomerArray
CustomerArray is dynamic array
CustomerArray = new dynamic array of 4 by 7 int
Trace("Number of elements: " + CustomerArray..Count)
Syntax
<Result> = <Element name>..Count
<Result>: Integer
  • Total number of rows found in the specified List Box, Table, Looper or Combo Box control.
    WEBDEV - Browser code Result also available in browser code for WEBDEV.
  • Number of elements found in the specified ListView control.
  • Number of rows found in the specified Table column.
  • Number of options found in the specified Check Box or Radio Button control.
  • Number of controls found in the specified group of controls.
  • Number of elements in a TreeView control.
  • Number of series in a Chart control.
  • Number of panes in a Tab control.
  • Number of elements in an array or associative array.
    Versions 17 and later
    WEBDEV - Browser code Result also available in browser code for WEBDEV.
    New in version 17
    WEBDEV - Browser code Result also available in browser code for WEBDEV.
    WEBDEV - Browser code Result also available in browser code for WEBDEV.
  • Number of elements in a queue, in a list or in a stack.
    AndroidAndroid Widget Java This feature is not available.
  • Number of occurrences for an element of the associative array.
    Versions 17 and later
    WEBDEV - Browser code Result also available in browser code for WEBDEV.
    New in version 17
    WEBDEV - Browser code Result also available in browser code for WEBDEV.
    WEBDEV - Browser code Result also available in browser code for WEBDEV.
  • Versions 15 and later
    WEBDEV - Server codeWEBDEV - Browser code Number of files in an Upload control.
    WEBDEV - Server code ..Count must be used in process for Receiving the uploaded files. In the other cases, this property returns 0.
    New in version 15
    WEBDEV - Server codeWEBDEV - Browser code Number of files in an Upload control.
    WEBDEV - Server code ..Count must be used in process for Receiving the uploaded files. In the other cases, this property returns 0.
    WEBDEV - Server codeWEBDEV - Browser code Number of files in an Upload control.
    WEBDEV - Server code ..Count must be used in process for Receiving the uploaded files. In the other cases, this property returns 0.
  • Versions 16 and later
    WINDEVWINDEV Mobile Number of options in a menu.
    New in version 16
    WINDEVWINDEV Mobile Number of options in a menu.
    WINDEVWINDEV Mobile Number of options in a menu.
  • Versions 17 and later
    WINDEV Number of elements in an Organization Chart control.
    New in version 17
    WINDEV Number of elements in an Organization Chart control.
    WINDEV Number of elements in an Organization Chart control.
<Element name>: Character string (with or without quotes)
Name of the element to use (WLanguage control or variable).
Remarks
WINDEVWindows MobileJavaPHPUser code (UMC)

Browsing table control with continuous scrollbar

For a Table control with continuous scrollbar, ..Count returns the number of rows displayed in the Table control (which means visible) and not the number of records in the file associated with the Table control.
WINDEVWEBDEV - Server codeWEBDEV - Browser codeiPhone/iPadWindows MobileUniversal Windows 10 AppJavaPHPAjaxUser code (UMC)

Array and associative array

..Count is used to:
  • Find out the number of elements in an array or in an associative array.
    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
    // Add the identifier of customer "A"
    aaIDPerCustomer["A"] = 56
     
    Trace("Nb elements: " + aaIDPerCust..Count)
    // Displays 2 (ignores the duplicates)
  • Finding out the number of occurrences for an element in an associative array. This property is very useful for an associative array with duplicates.
    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
    // Add the identifier of customer "A"
    aaIDPerCustomer["A"] = 56
     
    Trace("Nb elements: " + aaIDPerCust["A"]..Count)
    // Displays 1

Limit

..Count only applies to the:
  • List Box and ListView controls,
  • Table and TreeView Table controls,
  • Looper controls,
  • Combo Box controls,
  • TreeView controls,
  • Check Box controls,
  • Radio Button controls,
  • columns of Table controls, columns of TreeView Table controls,
  • Tab controls,
  • groups of controls,
  • Chart controls,
  • arrays, associative arrays,
  • queues, stacks and lists,
  • Versions 15 and later
    WINDEV TreeMap controls.
    New in version 15
    WINDEV TreeMap controls.
    WINDEV TreeMap controls.
  • Versions 15 and later
    WEBDEV - Server codeWEBDEV - Browser code Upload controls.
    New in version 15
    WEBDEV - Server codeWEBDEV - Browser code Upload controls.
    WEBDEV - Server codeWEBDEV - Browser code Upload controls.
  • Versions 16 and later
    WINDEVWINDEV Mobile menus.
    New in version 16
    WINDEVWINDEV Mobile menus.
    WINDEVWINDEV Mobile menus.
  • Versions 17 and later
    WINDEV Organization Chart controls.
    New in version 17
    WINDEV Organization Chart controls.
    WINDEV Organization Chart controls.
Java ..Count only applies to the following elements:
  • Check Box controls.
  • Radio Button controls.
  • List Box controls.
  • Combo Box controls.
  • TreeView controls.
  • Tab controls.
  • Table controls.
  • column of Table controls.
  • Versions 21 and later
    queues, stacks and lists.
    New in version 21
    queues, stacks and lists.
    queues, stacks and lists.
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment