ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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: window, page or report fields are bound to fields in a data file (Binding)
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: window, status or page fields are not associated with items in a data file.
The value of each control must be assigned to each item.
  1. The Check Box control field has a single option: use the following syntax to update the field:
    <Data file>.<Item> = <Check Box control>
  2. The Check Box control field has several options and is linked to an array field: use the following syntax to update the field:
    <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: 12/05/2024

Send a report | Local help