ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Indexed control
  • Overview of the indexed control
  • Creating an indexed control
  • Create an indexed edit control
  • To create an indexed column
  • Indexed control and array item
  • Notes
  • Indexed control and array item
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
Overview of the indexed control
A control is an indexed control if it contains several controls with the same name. Each control has the same name but a different index. This index allows you to easily handle the desired control programmatically.
Remark: The indexed controls are used to easily manage the Array text items defined in the data model editor.
Which controls can be indexed? Edit controls and columns in Table controls (numeric, text, currency, date and time).
Caution:
  • All indexed columns must be in the same Table control.
  • The indexed controls can only be used in the window editor. The indexed controls cannot be used in the report editor.
Creating an indexed control

Create an indexed edit control

To create an indexed edit control.
  1. Create a new Edit control.
  2. Give it the name of an existing edit control. The controls are indexed.

To create an indexed column

All you have to do is create a new column in a Table control with the same name as an existing column.
  • The name of both columns must end with a number (for example, MyColumn1).
  • When creating the second column, WINDEV proposes to create an indexed control. If you accept, the index is displayed in the description window of the Table control.

Indexed control and array item

After its creation, the indexed control can be linked to one of the elements of an array item.
Notes

Indexed control and array item

When using an array item, there is no need for all the indexed controls corresponding to the item to be in the same window (contrary to WINDEV 5.5). If the array item contains 6 elements, only three elements may be found in the window.
In a window, an indexed control can be located:
  • in a window (foreground).
  • in a plane.
  • in a tab.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 04/06/2023

Send a report | Local help