ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Check Box control
  • Item characteristics
  • Updating an item with the data from the Check Box control
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
Binding a Check Box control to an item
Item characteristics
A Combo Box control can be bound to an item in a data file, query, etc.
The following types of items can be bound to a Check Box control:
  • Numeric,
  • Boolean,
  • Check Box.
If the check box contains a single option, the item will take for value:
  • 1 if the box is checked
  • 0 if the box is not checked.
If the check box contains several options, an array item is required. Each element of the array item will correspond to a check box option, and will take the following value:
  • 1 if the box is checked
  • 0 if the box is not checked.
Updating an item with the data from the Check Box control
1st case: the controls in the window, page or report are bound to items in a data file
All the items in the data file (or a related file) that are bound to a control in the window, page or report will be updated by ScreenToFile.
2nd case: the controls in the window, page or report are not bound to items in a data file
The value of each control must be assigned to each item.
  1. If the Check Box control has a single option: use the following syntax to update the item:
    <Data file>.<Item> = <Check Box control>
  2. If the Check Box control has multiple options and is bound to an array item: use the following syntax to update the item:
    <Data file>.<Item>[Option index] = <Check Box control>[Option index]
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help